home *** CD-ROM | disk | FTP | other *** search
/ Shareware Universe - The Gold Collection / Shareware Universe The Gold Collection.iso / utility / thunder / thunder.go < prev    next >
Encoding:
Text File  |  1996-04-19  |  303.8 KB  |  7,634 lines

  1. THUNDERBYTE ANTI-VIRUS
  2.  
  3.      SECTION 0. INTRODUCTION
  4.           1. How to use the manual . . . . . . . . . . . . . . . . .     0 - 1
  5.           2. Overview of the TBAV utilities  . . . . . . . . . . . .     0 - 1
  6.  
  7.      SECTION I. INSTALLING TBAV
  8.           1. How to install TBAV   . . . . . . . . . . . . . . . . .     I - 1
  9.                1.1 Initial installation  . . . . . . . . . . . . . .     I - 1
  10.                1.2 Menu and command syntax . . . . . . . . . . . . .     I - 2
  11.           2. Configuration . . . . . . . . . . . . . . . . . . . . .     I - 4
  12.           3. TbSetup . . . . . . . . . . . . . . . . . . . . . . . .     I - 6
  13.                3.1. The Purpose of TbSetup . . . . . . . . . . . . .     I - 6
  14.                3.2. How to use TbSetup . . . . . . . . . . . . . . .     I - 6
  15.                3.3. Command line options . . . . . . . . . . . . . .    I - 11
  16.                3.4. While executing  . . . . . . . . . . . . . . . .    I - 13
  17.           4. TbDriver  . . . . . . . . . . . . . . . . . . . . . . .    I - 16
  18.                4.1. Purpose of TbDriver  . . . . . . . . . . . . . .    I - 16
  19.                4.2. Command line options . . . . . . . . . . . . . .    I - 16
  20.                4.3. Language support . . . . . . . . . . . . . . . .    I - 19
  21.           5. System maintenance  . . . . . . . . . . . . . . . . . .    I - 20
  22.           6. Network maintenance . . . . . . . . . . . . . . . . . .    I - 21
  23.                6.1. Using DOS REPLACE  . . . . . . . . . . . . . . .    I - 21
  24.                6.2. Using PkUnZip  . . . . . . . . . . . . . . . . .    I - 21
  25.  
  26.      SECTION II. ANTI-VIRUS STRATEGY
  27.           1. Protection against viruses  . . . . . . . . . . . . . .    II - 1
  28.                1.1. Introduction . . . . . . . . . . . . . . . . . .    II - 1
  29.                1.2. Basic precautions  . . . . . . . . . . . . . . .    II - 1
  30.           2. What to do when a virus strikes . . . . . . . . . . . .    II - 6
  31.                2.1. Detection of viruses . . . . . . . . . . . . . .    II - 6
  32.                2.2. Recovering from viruses  . . . . . . . . . . . .    II - 7
  33.  
  34.      SECTION III. USING THE TBAV UTILITIES
  35.           1. TbScan  . . . . . . . . . . . . . . . . . . . . . . .     III - 1
  36.                1.1. The Purpose of TbScan  . . . . . . . . . . . .     III - 1
  37.                1.2. How to use Tbscan  . . . . . . . . . . . . . .     III - 2
  38.                1.3. Command line options . . . . . . . . . . . . .    III - 11
  39.                1.4. The scanning process . . . . . . . . . . . . .    III - 18
  40.           2. TbScanX . . . . . . . . . . . . . . . . . . . . . . .    III - 22
  41.                2.1. The Purpose of TbScanX . . . . . . . . . . . .    III - 22
  42.                2.2. How to use TbScanX . . . . . . . . . . . . . .    III - 22
  43.                2.3. Command line options . . . . . . . . . . . . .    III - 23
  44.                2.4. While scanning . . . . . . . . . . . . . . . .    III - 26
  45.           3. TbCheck . . . . . . . . . . . . . . . . . . . . . . .    III - 28
  46.                3.1. The Purpose of TbCheck . . . . . . . . . . . .    III - 28
  47.                3.2. How to use TbCheck . . . . . . . . . . . . . .    III - 28
  48.                3.3. Command line options . . . . . . . . . . . . .    III - 29
  49.                3.4. While checking . . . . . . . . . . . . . . . .    III - 31
  50.                3.5. Testing TbCheck  . . . . . . . . . . . . . . .    III - 31
  51.           4. TbClean . . . . . . . . . . . . . . . . . . . . . . .    III - 32
  52.                4.1. The Purpose of TbClean . . . . . . . . . . . .    III - 32
  53.                4.2. How to use TbClean . . . . . . . . . . . . . .    III - 33
  54.                4.3. Command line options . . . . . . . . . . . . .    III - 35
  55.                4.4. The cleaning process . . . . . . . . . . . . .    III - 36
  56.  
  57.  
  58. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                  CONTENTS
  59.  
  60.  
  61.           5. Ongoing virus prevention: TbMon . . . . . . . . . . .    III - 40
  62.                5.1. TbMem  . . . . . . . . . . . . . . . . . . . .    III - 41
  63.                5.2. TbFile . . . . . . . . . . . . . . . . . . . .    III - 45
  64.                5.3. TbDisk . . . . . . . . . . . . . . . . . . . .    III - 47
  65.           6. TBAV Tools  . . . . . . . . . . . . . . . . . . . . .    III - 53
  66.                6.1. TbUtil . . . . . . . . . . . . . . . . . . . .    III - 53
  67.                6.2. TbLog  . . . . . . . . . . . . . . . . . . . .    III - 61
  68.  
  69.      SECTION IV. ADVANCED USER INFORMATION
  70.           1. Memory requirements . . . . . . . . . . . . . . . . . .    IV - 1
  71.           2. TbSetup . . . . . . . . . . . . . . . . . . . . . . . .    IV - 3
  72.                2.1. Anti-Vir.Dat design considerations . . . . . . .    IV - 3
  73.                2.2. Format of TbSetup.Dat  . . . . . . . . . . . . .    IV - 3
  74.                2.3. TBAV site installation . . . . . . . . . . . . .    IV - 5
  75.           3. TbScan  . . . . . . . . . . . . . . . . . . . . . . . .    IV - 7
  76.                3.1. Heuristic scanning . . . . . . . . . . . . . . .    IV - 7
  77.                3.2. Integrity checking . . . . . . . . . . . . . . .    IV - 8
  78.                3.3. Program validation . . . . . . . . . . . . . . .    IV - 9
  79.                3.4. The algorithms . . . . . . . . . . . . . . . . .    IV - 9
  80.                3.5. The TbScan.Lng file  . . . . . . . . . . . . .     IV - 11
  81.                3.6. The TBAV.MSG file  . . . . . . . . . . . . . .     IV - 11
  82.           4. TbClean . . . . . . . . . . . . . . . . . . . . . . .     IV - 12
  83.           5. TbGensig  . . . . . . . . . . . . . . . . . . . . . .     IV - 15
  84.                5.1 The Purpose of TbGenSig . . . . . . . . . . . .     IV - 15
  85.                5.2 Defining signatures . . . . . . . . . . . . . .     IV - 15
  86.                5.3 Keywords  . . . . . . . . . . . . . . . . . . .     IV - 18
  87.                5.4 Wildcards . . . . . . . . . . . . . . . . . . .     IV - 21
  88.  
  89.      Appendix A. TBAV messages
  90.  
  91.      Appendix B. TbScan - Heuristic flag descriptions
  92.  
  93.      Appendix C. Solving incompatibility problems
  94.  
  95.      Appendix D. Batch file handling
  96.  
  97.      Appendix E. Virus naming
  98.  
  99.  
  100. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION 0
  101.  
  102.  
  103. SECTION 0. INTRODUCTION
  104.  
  105.  
  106. 1. How to use the manual
  107.  
  108.      Congratulations! By purchasing the ThunderBYTE Anti-Virus utilities you
  109.      have taken the basic step in building a massive anti-viral safety wall
  110.      around your precious computer system. Setting up the appropriate defen-
  111.      se, using the TBAV utilities, is a 'personal matter'. Therefore, we
  112.      highly recommend to read this manual thoroughly, so you are well aware
  113.      of all different kinds of security measures you may take. 
  114.  
  115.      This manual consists of four main sections. Section I instructs you how
  116.      to install the TBAV utilities on your hard disk(s), including some
  117.      useful hints on customized initialization. Section II gives an instruc-
  118.      tion on how to prevent viruses from infecting your computer system(s)
  119.      and directions on how to handle when you actually have been struck by a
  120.      computer virus.
  121.  
  122.      In section III, both purpose and functionality of all TBAV utilities are
  123.      described. For those who want to know more about the subject, some
  124.      'advanced user information' on the ThunderBYTE Anti-Virus utilities is
  125.      presented in section IV. 
  126.  
  127.      You may use the TBAV manual as a reference manual, via an extensive
  128.      index and appendices referring to the TBAV error messages. 
  129.  
  130. =>   Note that a complete reading of the manual is indispensible in order to
  131.      become familiar with the many facets of ThunderBYTE Anti-Virus, to know
  132.      what steps can - and must - be taken to ensure adequate protection and
  133.      to be fully prepared for a complete recovery, if and when disaster
  134.      strikes. 
  135.  
  136.  
  137. 2. Overview of the TBAV utilities
  138.  
  139.      What is ThunderBYTE Anti-Virus?
  140.  
  141.      ThunderBYTE Anti-Virus (TBAV) is a comprehensive toolkit designed to
  142.      protect against - and recover from - computer viruses. While TBAV
  143.      focuses heavily on numerous ways to prevent a virus infection, the
  144.      package would not be complete without various cleaner programs to purge
  145.      a system, in the unlikely event that a virus manages to slip through.
  146.      The package therefore consists of a number of programs each of which
  147.      help you to prevent viruses to do their destructive jobs. Here is a
  148.      quick overview. 
  149.  
  150.  
  151.      Collecting software information: TbSetup
  152.  
  153.      TbSetup is a program that collects information from all software found
  154.      on your system. The information will be put in files named Anti-Vir.Dat.
  155.  
  156.                                        0 - 1
  157.  
  158.  
  159. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION 0
  160.  
  161.  
  162.      The information maintained in these files can be used for integrity
  163.      checking, program validation, and to clean infected files.
  164.  
  165.  
  166.      Enable memory resident TBAV utilities: TbDriver
  167.  
  168. ~    TbDriver does not provide much protection against viruses by itself, but
  169.      must be loaded in advance to enable the memory resident ThunderBYTE
  170.      Anti-Virus utilities, such as TbScanX, TbCheck, TbMem, TbFile and TbDisk
  171.      to perform properly. It also provides basic protection against ANSI
  172.      bombs and 'stealth' viruses.
  173.  
  174.  
  175.      Scanning for viruses: TbScan
  176.  
  177.      TbScan is both a very fast signature scanner and a so-called heuristic
  178.      scanner. Besides its blazing speed it has many configuration options. It
  179.      can detect mutants of viruses, it can bypass stealth type viruses, etc.
  180.      The signature file used by TbScan is a coded 'TbScan.Sig' file, which
  181.      can be updated by yourself in case of emergency.  TbScan is able to
  182.      disassemble and decrypt files. This makes it possible to detect suspici-
  183.      ous instruction sequences and to detect yet unknown viruses. This
  184.      generic detection, named heuristic analysis, is a technique that makes
  185.      it possible to detect about 90% of all viruses by searching for suspici-
  186.      ous instruction se-quences rather than using any signature. For that
  187.      purpose TbScan contains a disassembler, decryptor and code analyzer.
  188.  
  189.      Another feature of TbScan is the integrity checking it performs when it
  190.      finds the Anti-Vir.Dat files generated by TbSetup. 'Integrity checking'
  191.      means that TbScan will check that every file being scanned matches the
  192.      information maintained in the Anti-Vir.Dat files. If a virus infects a
  193.      file, the maintained information will not match the now changed file
  194.      anymore, and TbScan will inform you about this. 
  195.  
  196.      TbScan performs an integrity check automatically, and it does not have
  197.      the false alarm rate other integrity checkers have. The goal is to
  198.      detect viruses and not to detect configuration changes!
  199.  
  200.  
  201.      Automatic scanning: TbScanX
  202.  
  203.      TbScanX is the memory resident version of TbScan. This signature scanner
  204.      remains resident in memory and automatically scans those files which are
  205.      being executed, copied, de-archived, downloaded, etc. TbScanX does not
  206.      require much memory. It can swap itself into expanded, XMS, or high
  207.      memory, using only 1Kb of conventional memory.
  208.  
  209.  
  210.      Check while loading: TbCheck
  211.  
  212.      TbCheck is a memory resident integrity checker. This program remains
  213.      resident in memory and checks automatically every file just before it is
  214.  
  215.                                        0 - 2
  216.  
  217.  
  218. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION 0
  219.  
  220.  
  221.      being executed. TbCheck uses a fast integrity checking method, consuming
  222.      only 400 bytes of memory. It can be configured to reject files with
  223.      incorrect checksums, and/or to reject files that do not have a corres-
  224.      ponding Anti-Vir.Dat record.
  225.  
  226.  
  227.      Restoring infected boot-sector, CMOS and partition tables: TbUtil
  228.  
  229.      Some viruses copy themselves into the hard disk's partition table, which
  230.      makes them far more difficult to remove than bootsector viruses. Perfor-
  231.      ming a low-level format is an effective, but rather drastic measure.
  232.      TbUtil offers a more convenient alternative by making a precautionary
  233.      back-up of uninfected partition tables and the boot sector. If an
  234.      infection occurs, the TbUtil back-up can be used as a verifying tool and
  235.      as a means to restore the original (uninfected) partition table and
  236.      bootsector without the need for a destructive disk format. The program
  237.      can also restore the CMOS configuration for you. If a back-up of your
  238.      partition table is not available, TbUtil will try to create a new
  239.      partition table anyway, again avoiding the need for a low-level format. 
  240.  
  241.      Another important feature of TbUtil is the option to replace the parti-
  242.      tion table code with new code offering greater resistance to viruses.
  243.      The TbUtil partition code is executed before the boot sector gains
  244.      control, enabling it to check this sector in a clean environment. The
  245.      TbUtil partition code performs a CRC calculation on the master boot
  246.      sector just before the boot sector code is activated and issues a
  247.      warning if the boot sector has been modified. The TbUtil partition code
  248.      also checks and reports changes in the RAM lay-out. These checks are
  249.      carried out whenever the computer is booted from the hard disk.
  250.  
  251.      It should be noted that boot sector verification is imperative before
  252.      allowing the boot sector code to execute. A virus could easily become
  253.      resident in memory during boot-up and hide its presence. TbUtil offers
  254.      total security at this stage by being active before the boot sector is
  255.      executed. Obviously, TbUtil is far more convenient than the traditional
  256.      strategy of booting from a clean DOS diskette for an undisturbed inspec-
  257.      tion of the boot sector.
  258.  
  259.  
  260.      Reconstructing infected files: TbClean
  261.  
  262.      TbClean is a generic file cleaning utility. It uses the Anti-Vir.Dat
  263.      files generated by TbSetup to enhance file cleaning and/or to verify the
  264.      results. TbClean can however also work without these files. It disassem-
  265.      bles and emulates the infected file and uses this analysis to recon-
  266.      struct the original file.
  267.  
  268.  
  269.      Resident safeguard: TbMon
  270.  
  271.      TbMon is a set of memory resident anti-virus utilities, consisting of
  272.      TbMem, TbFile and TbDisk. Most other resident anti-virus products offer
  273.  
  274.                                        0 - 3
  275.  
  276.  
  277. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION 0
  278.  
  279.  
  280.      you the choice to invoke them before the network is loaded and losing
  281.      the protection after the logon procedure, or to load the anti-viral
  282.      software AFTER the logon to the network, resulting in a partially
  283.      unprotected system. The ThunderBYTE Anti-Virus utilities however recog-
  284.      nize the network software and take appropriate actions to ensure their
  285.      functionality.
  286.  
  287.  
  288.      Controlling memory: TbMem
  289.  
  290. ~    TbMem detects attempts from programs to remain resident in memory, and
  291.      ensures that no program can remain resident in memory without permis-
  292.      sion. Since most viruses remain resident in memory, this is a powerful
  293.      weapon against all such viruses, known or unknown. Permission informa-
  294.      tion is maintained in the Anti-Vir.Dat files. TbMem also protects your
  295.      CMOS memory against unwanted modifications.
  296.  
  297.  
  298.      Preventing infection: TbFile
  299.  
  300.      TbFile detects attempts from programs to infect other programs. It also
  301.      guards read-only attributes, detects illegal time-stamps, etc. It will
  302.      make sure that no virus succeeds in infecting programs.
  303.  
  304.  
  305.      Protecting the disk: TbDisk
  306.  
  307.      TbDisk is a disk guard program which detects attempts from programs to
  308.      write directly to disk (without using DOS), attempts to format, etc.,
  309.      and makes sure that no malicious program will succeed in destroying your
  310.      data. This utility also traps tunneling and direct calls into the BIOS
  311.      code. Permission information about the rare programs that write directly
  312.      and/or format the disk is maintained in the Anti-Vir.Dat files.
  313.  
  314.  
  315.      Define your own signatures (in case of an emergency): TbGensig
  316.  
  317.      Since TBAV is distributed with an up-to-date, ready-to-use signature
  318.      file, you do not really need to maintain a signature file yourself. If,
  319.      however, you want to define your own virus signatures, you will need the
  320.      TbGensig utility. You can use either published signatures or define your
  321.      own ones if you are familiar with the structure of software.
  322.  
  323.  
  324.      Remove infected files: TbDel
  325.  
  326.      The DOS 'DEL' command does not actually erase a file. It simply changes
  327.      the first filename character in the directory listing and frees up the
  328.      space by changing the disk's internal location tables. TbDel is a small
  329.      program with just one but important purpose: it replaces every single
  330.      byte in a file with zero characters before deleting it. The entire
  331.      contents are therefore obliterated and totally unrecoverable.
  332.  
  333.                                        0 - 4
  334.  
  335.  
  336. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  337.  
  338.  
  339. SECTION I. INSTALLING TBAV
  340.  
  341.  
  342. 1. How to install TBAV 
  343.  
  344.  
  345.      System requirements
  346.  
  347.      The ThunderBYTE Anti-Virus utilities can be executed on any IBM or
  348.      compatible PC with at least 1 Mb disk space. The TBAV utilities need 256
  349.      Kb free internal memory and require DOS 3. However, DOS 5 or a later
  350.      version is recommended. The TBAV utilities are compatible with networks,
  351.      Windows, DR-DOS, etc. 
  352.  
  353.  
  354. 1.1 Initial installation
  355.  
  356.      You can install the TBAV utilities either by using the installation
  357.      procedure (which is explained below) or by a fully customized TBAV
  358.      installation (which is explained in sections  I - 3 and II).
  359.  
  360.      Insert the TBAV installation diskette in the diskette drive.
  361.  
  362.      Type:
  363.           A: or B:
  364.  
  365.      Type:
  366.           install C:\TBAV <Enter>
  367.  
  368.  
  369.           +-------------------------------+
  370.           |    Express Installation     > |
  371.           |    Custom Installation      > |
  372.           |    Upgrade TBAV             > |
  373.           |    License TBAV               |
  374.           |    View TBAV.DOC file         |
  375.           |    Quit installation          |
  376.           +-------------------------------+
  377.  
  378.      Since this is the first time you install the TBAV package you choose the
  379.      first option.
  380.  
  381.      The installation program shows you the Licensing Agreement, and when you
  382.      are finished reading you have to press <Esc>.
  383.  
  384.      The installation program now asks you to enter your name, company name
  385.      (if applicable) and to confirm the licensing agreement by typing 'YES'.
  386.  
  387.      Then a new menu will pop-up which shows you the Source-path (the path
  388.      where the installation program itself resides, usually the A: drive) and
  389.      the default destination-path where the TBAV program files will be
  390.      installed, usually C:\TBAV). You can change these paths, but this is
  391.  
  392.                                        I - 1
  393.  
  394.  
  395. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  396.  
  397.  
  398.      normally not necessary. When the paths are configured as desired, select
  399.      'Begin Installation'.
  400.  
  401.      The installation program now scans your system to make sure that it is
  402.      clean, and copies the TBAV files to the destination directory. After
  403.      that it makes a backup of the Autoexec.Bat file before making a few
  404.      modifications to it. The installation program adds the TBAV directory to
  405.      your PATH statement, and it adds a call to the TbStart.Bat file.
  406.  
  407.      The TbStart.Bat file which is located in the TBAV directory contains the
  408.      following commands:
  409.  
  410.           C:\TBAV\tbdriver
  411.           C:\TBAV\tbscanx
  412.           C:\TBAV\tbcheck
  413.           C:\TBAV\tbmem
  414.           C:\TBAV\tbfile
  415.           C:\TBAV\tbscan /once /alldrives
  416.  
  417.      After reading the manual thoroughly, you can configure these commands to
  418.      suit your own personal needs.
  419.  
  420.      In the final installation menu you are invited to make a Rescue disket-
  421.      te. You will need one empty formatted diskette. It is highly recommended
  422.      to create a Rescue diskette right now.
  423.  
  424.      When you exit the installation program, TbSetup will be invoked automa-
  425.      tically to generate the reference files (Anti-Vir.Dat). When this
  426.      process has been finished it is recommended to reboot to activate the
  427.      new commands in your Autoexec.Bat file.
  428.  
  429.      It is very likely that some of the TBAV utilities are going to display
  430.      messages when you reboot and continue using the computer as you normally
  431.      would. Some programs perform operations that are monitored by the TBAV
  432.      utilities, so TBAV must first 'learn' which programs need proper permis-
  433.      sion. Execute some of the programs you use regularly and at each rele-
  434.      vant query respond with 'Y' to authorize or 'N' to deny permission. TBAV
  435.      will remember the settings and not bother you again. Reboot the computer
  436.      at the end of this test run. 
  437.  
  438.      The TBAV utilities are now ready to monitor the system and will issue a
  439.      warning if something suspicious - or worse - is about to happen. They
  440.      will also warn you if any new file contains a possible virus - well
  441.      before it can do any harm.
  442.  
  443.  
  444. 1.2 Menu and command syntax
  445.  
  446.      You can activate most of the TBAV utilities from within the TBAV menu,
  447.      by loading:
  448.  
  449.           cd\tbav
  450.  
  451.                                        I - 2
  452.  
  453.  
  454. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  455.  
  456.  
  457.           tbav
  458.  
  459.      In order to execute the utilities automatically, all TBAV drivers and
  460.      utilities may be executed from the DOS prompt. In a systemized setup,
  461.      however, the drivers should be installed and activated in your Con-
  462.      fig.Sys, with a device= or install= directive, or in the TbStart.Bat
  463.      file as a TSR. Similarly, most utilities can be started automatically -
  464.      in the case of TbScan restricted to once a day - in the TbStart.Bat
  465.      file. The two exceptions are TbClean and TbDel, which should be executed
  466.      only from the DOS prompt and (TbClean) from within the TBAV menu.
  467.  
  468.      All commands for ThunderBYTE Anti-Virus can be used with command line
  469.      switches or options to control special features. The options may either
  470.      be written out in full, or abbreviated to their one- or two-letter
  471.      mnemonic to shorten the command line. Throughout this manual the exam-
  472.      ples are given with options in verbose, unabbreviated form for clarity.
  473.      Options must be separated by spaces. They do not need a preceding switch
  474.      character, but you may use the customary slash or hyphen switch charac-
  475.      ters if you wish.
  476.  
  477.      The standard command line syntax for all ThunderBYTE Anti-Virus commands
  478.      is:
  479.  
  480.           command [<path>] [<filename>] [<option>] ... [<suboption>] ...
  481.  
  482.      You may review the correct syntax for any command, including a complete
  483.      option list, with the command followed by the word 'help' or a question
  484.      mark, as in:
  485.  
  486.           tbcheck ?
  487.  
  488.      The same on-line help is provided whenever the command is issued with an
  489.      invalid option.
  490.  
  491.      The examples, presented in this manual assume that all utilities were
  492.      installed in the default \TBAV directory.
  493.  
  494.  
  495.      Create a recovery diskette!
  496.  
  497.      It is highly recommended to make a recovery diskette. The example setups
  498.      assume you have created such a recovery diskette (see the instructions
  499.      in section II). 
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.                                        I - 3
  511.  
  512.  
  513. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  514.  
  515.  
  516. 2. Configuration
  517.  
  518.      The choices you made when installing the TBAV utilities may need some
  519.      tuning, for instance by appending options to the loading command. This
  520.      tuning can be done by editing the TBSTART.BAT file, which automatically
  521.      loads the memory resident utilities. 
  522.  
  523. =>   If suitable, you may write the relevant commands in the Config.Sys file
  524.      instead. Do not forget to specify the .EXE extension in the Config.Sys
  525.      file!
  526.  
  527.      Below, some basic hints are presented, to customize the initial settings
  528.      to suit your own needs. After initializing and rebooting your system for
  529.      the first time afterwards, TBAV will need your response in the initial
  530.      'learning' stage.
  531.  
  532.  
  533.      TBAV menu configuration
  534.  
  535.      The TBAV menu allows some configuration, as well.
  536.  
  537.      +----Main menu-----+
  538.      |  Confi+----------TBAV configuration----------+
  539.      |  TbSet|v Use colors                          |
  540.      |  TbSca|  Save configuration to TBAV.INI      |
  541.      |  TbUti|  File view utility                   |
  542.      |  TbCLe|v Wait after program execution        |
  543.      |  TBAV |  Show command line before executing  |
  544.      |  Docum|v Edit path string before scanning    |
  545.      |  Regis+--------------------------------------+
  546.      |  Quit and save   |
  547.      |  eXit (no save)  |
  548.      +------------------+
  549.  
  550.      You can activate the configuration options by toggling to the relevant
  551.      choice and pressing <Enter>.
  552.  
  553.  
  554.      Use colors
  555.  
  556.      If disabled, TBAV will be displayed in monochrome mode, which is conve-
  557.      nient for use on laptop computers.
  558.  
  559.  
  560.      Save configuration to TBAV.INI
  561.  
  562.      All configuration values, set within the TBAV menu, are saved in the
  563.      'TBAV.INI' file, once you have selected this option. The next time you
  564.      load the TBAV utilities the configuration values in the current TBAV.INI
  565.      file will be valid. These values apply to the TBAV menu itself and the
  566.      utilities TbSetup, TbScan and TbClean. Although you may edit the TBAV.I-
  567.      NI file manually, it is recommended to let the TBAV menu shell generate
  568.  
  569.                                        I - 4
  570.  
  571.  
  572. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  573.  
  574.  
  575.      it. By default, the contents of the TBAV.INI file is only valid while
  576.      using the TBAV menu shell. You may, however, enable the "Use TBAV.INI
  577.      file" options (or specify the 'UseIni' switches in the TBAV.INI file
  578.      itself) for each of the utilities mentioned above. Doing so, the confi-
  579.      guration, saved in the TBAV.INI file will also be valid when TbSetup,
  580.      TbScan or TbClean are loaded from the command line. Be careful, since
  581.      options specified in the TBAV.INI file can not be undone on the command
  582.      line. TBAV will create a TBAV.INI file when enabling this option for the
  583.      first time. In this file all valid configuration switches are listed.
  584.      The disabled switches are preceded by a semicolon.
  585.  
  586.  
  587.      File view utility
  588.  
  589.      TbSetup and TbScan generate a datafile and a logfile respectively. By
  590.      default, you can view these files from the TBAV menu using an internal
  591.      file view utility. By using this option you are able to attach your
  592.      favorite external file view utility. Enter the complete path and the
  593.      file name, including the extension.
  594.  
  595.  
  596.      Wait after program execution
  597.  
  598.      By enabling this option, TBAV will display the message:
  599.      "Press any key to return to the TBAV utilities" after executing an
  600.      external utility.
  601.  
  602.  
  603.      Show command line before executing
  604.  
  605.      Enabling this option will force TBAV to display the DOS command which
  606.      will load the external utility. This option comes in handy in order to
  607.      see the command(s) you specified before. After pressing <Enter> TBAV
  608.      will execute the DOS commands.
  609.  
  610.  
  611.      Edit path string before scanning
  612.  
  613.      If enabled, you are prompted to edit or confirm the path to be scanned
  614.      after you have selected "Start scanning".
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.                                        I - 5
  629.  
  630.  
  631. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  632.  
  633.  
  634. 3. TbSetup
  635.  
  636.  
  637. 3.1. The Purpose of TbSetup
  638.  
  639.      TbSetup is an indispensible tool, adding support to the rest of the
  640.      ThunderBYTE Anti-Virus utilities, even though it does not take an active
  641.      part in actual virus detection or cleaning itself. TbSetup organizes
  642.      control and recovery information giving extra power to the other utili-
  643.      ties. The information is gathered, mainly from program files, into a
  644.      single reference file called Anti-Vir.Dat, one each per directory. The
  645.      nature of Anti-Vir.Dat files will be explained more fully at the end of
  646.      this chapter.
  647.  
  648.      Although the ThunderBYTE utilities can work perfectly well without the
  649.      Anti-Vir.Dat files it is highly recommended to have TbSetup generate
  650.      these files. The Anti-Vir.Dat files can be used for several purposes:
  651.  
  652.      Integrity checking. TbScan and the memory resident TbCheck program will
  653.      perform an integrity check while scanning if it can detect the Anti-
  654.      Vir.Dat file. If a file gets infected by a virus, the information in the 
  655.      Anti-Vir.Dat file will not match the actual file contents, and TbScan
  656.      and TbCheck will inform you that the file has been changed. 
  657.  
  658.      The TbSetup program recognizes some files that need special treatment.
  659.      An example of such a file is a disk image file of a network remote boot
  660.      disk. - Such a file that actually represents a complete disk - should be
  661.      scanned completely, and for all viruses. TbSetup will put a mark in the
  662.      Anti-Vir.Dat file to make sure that TbScan scans the complete file for
  663.      all viruses.
  664.  
  665.      Once a file is infected, TbClean will reconstruct the original file. The
  666.      information in the Anti-Vir.Dat file will be of great help to TbClean.
  667.      Some infected programs can only be cured if there is information about
  668.      the program in the Anti-Vir.Dat file.
  669.  
  670.      TbCheck (a tiny resident integrity checker) has no purpose if there are
  671.      no Anti-Vir.Dat files on your system.
  672.  
  673.      The resident TBAV utilities need the Anti-Vir.Dat files to maintain
  674.      permission information. Without Anti-Vir.Dat files you can not get rid
  675.      of false alarms other than by disabling a complete feature.
  676.  
  677.  
  678. 3.2. How to use TbSetup
  679.  
  680.      This is the one program where the rule applies: The less you use the
  681.      program, the better your protection against viruses! Why? Keep in mind
  682.      that an Anti-Vir.Dat file stores vital information needed to detect a
  683.      virus, as well as data for subsequent recovery and for cleaning. But
  684.      consider what would happen if you were to execute TbSetup after a virus
  685.      entered the system: the information in the Anti-Vir.Dat file would be
  686.  
  687.                                        I - 6
  688.  
  689.  
  690. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  691.  
  692.  
  693.      'updated' to the state of the infected file, wiping out all traces of
  694.      data needed to reconstruct the file of the original, uninfected state.
  695.      Never use TbSetup when there is the slightest evidence of a virus in
  696.      your system. Once the Anti-Vir.Dat files have been generated as part of
  697.      the initial setup, any subsequent usage of TbSetup should be confined to
  698.      directories with new or changed program files.
  699.  
  700.      Please note that the Anti-Vir.Dat directory entries will have the
  701.      attribute 'hidden' and therefore do not show up when you use standard
  702.      directory commands. You can see the filenames only with the help of
  703.      special utilities.
  704.  
  705.      You may load TbSetup either from the DOS command line or from the TBAV
  706.      menu. For the initial installation you can use option 'AllDrives':
  707.  
  708.           TbSetup AllDrives
  709.  
  710.      You may also specify which drives and paths should be processed. To
  711.      setup disks C: and D: you should enter:
  712.  
  713.           TbSetup C:\ D:\
  714.  
  715.      When no filename has been specified but a drive and/or path instead, the
  716.      specified path will be used as top-level path. All its sub-directories
  717.      will be processed too. When a filename has been specified only the
  718.      specified path will be processed. Sub-directories will not be processed.
  719.  
  720.  
  721.      Wildcards in the filename are allowed.
  722.  
  723.      When executed from the DOS command line, the 'newonly' option can be
  724.      used to prevent existing information from being overwritten. 
  725.      To help you remember that TbSetup needs to be executed again, the next
  726.      time you execute TbScan it will display either a small 'c' after the
  727.      file to indicate a new file or a capital 'C' if a file has simply been
  728.      changed.
  729.  
  730.      Example:
  731.      You add a new file TEST.EXE to your directory C:\FOO.
  732.  
  733.           TbSetup C:\FOO\TEST.EXE
  734.  
  735.  
  736.      Example:
  737.      You install a new product in a new directory C:\NEW.
  738.  
  739.           TbSetup C:\NEW
  740.  
  741.  
  742.      When using the DOS command you may append a number of loading options.
  743.      These options are presented in section 3.3. of this chapter.
  744.  
  745.  
  746.                                        I - 7
  747.  
  748.  
  749. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  750.  
  751.  
  752.      The 'TbSetup' menu
  753.  
  754.  
  755.      +----Main menu-----+
  756.      |  Confi+------TbSetup menu------+
  757.      |  TbSet|  Start TbSetup         |
  758.      |  TbSca|  Options menu         >|
  759.      |  TbUti|  Flags menu           >|
  760.      |  TbCLe|  Data file path/name   |
  761.      |  TBAV |  View data file        |
  762.      |  Docum+------------------------+
  763.      |  Register TBAV   |
  764.      |  Quit and save   |
  765.      |  eXit (no save)  |
  766.      +------------------+
  767.  
  768.  
  769.      Data file path/name 
  770.  
  771.      TbSetup will search for 'special' files in a file named TbSetup.Dat.
  772.      After selecting this option 'datfile' you can specify another path or
  773.      filename that contains a list of 'special' files. Option format: Datfile
  774.      [=<filename>]
  775.  
  776.      Example:            
  777.           TbSetup Datfile = c:\tbav\tbsetup.dat
  778.  
  779.  
  780.      +----Main menu-----+
  781.      |  Confi+------TbSetup menu------+
  782.      |  TbSet|  Start+-------TbSetup options--------------+
  783.      |  TbSca|  Optio|  Use TBAV.INI file                 |
  784.      |  TbUti|  Flags|  Prompt for pause                  |
  785.      |  TbCLe|  Data |  Only new files                    |
  786.      |  TBAV |  View |  Remove Anti-Vir.Dat files         |
  787.      |  Docum+-------|  Test mode (don't change anything) |
  788.      |  Register TBAV|v Hide Anti-Vir.Dat files           |
  789.      |  Quit and save|  Make executables readonly         |
  790.      |  eXit (no save|  Clear readonly attributes         |
  791.      +---------------|v Sub-Directory scan                |
  792.                      +------------------------------------+
  793.  
  794.  
  795.      Use TBAV.INI file
  796.  
  797.      By enabling this option, the TbSetup configuration values, saved in the
  798.      TBAV.INI file, will also be valid when loading TbSetup from the command
  799.      line. Be careful, since options specified in the TBAV.INI file can not
  800.      be undone on the command line. See chapter I-2 ('Configuration').
  801.  
  802.  
  803.  
  804.  
  805.                                        I - 8
  806.  
  807.  
  808. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  809.  
  810.  
  811.      Prompt for pause
  812.  
  813.      When you enter option 'pause' TbSetup will stop after it has processed
  814.      the contents of one window. This gives you the possibility to examine
  815.      the results.
  816.  
  817.  
  818.      Only new files 
  819.  
  820.      If you want to add new files to the Anti-Vir.Dat database, but prevent
  821.      the information of changed files from being updated use option 'newon-
  822.      ly'. Updating the information of changed files is dangerous because if
  823.      the files are infected, the information to detect and cure the virus
  824.      will be overwritten. Option 'newonly' prevents the information from
  825.      being overwritten but it still allows information of new files to be
  826.      added to the database.
  827.  
  828.  
  829.      Remove Anti-Vir.Dat files 
  830.  
  831.      If you want to stop using the ThunderBYTE utilities you do not have to
  832.      remove all the Anti-Vir.Dat files yourself. By using this option TbSetup
  833.      will neatly remove all Anti-Vir.Dat files from your system.
  834.  
  835.  
  836.      Test mode (Don't change anything)
  837.  
  838.      If you want to see the effect of an option without the risk that somet-
  839.      hing is activated you do not want, use option 'test'. If that option is
  840.      specified the program will behave as it would normally, but it will not
  841.      change or update anything on your hard disk.
  842.  
  843.  
  844.      Hide Anti-Vir.Dat files 
  845.  
  846.      The Anti-Vir.Dat files are normally not visual in a directory listing.
  847.      If you prefer to have normal - i.e. visible - files disable this option. 
  848. =>   Note that this option only applies for new Anti-Vir.Dat files.
  849.  
  850.  
  851.      Make executables read-only 
  852.  
  853.      As TbFile guards the read-only attribute permanently it is highly
  854.      recommended to make all executable files read-only to prevent any
  855.      modifications on these files. TbSetup will do the job if you enable
  856.      option 'read-only'. Files that should not be made read-only are recogni-
  857.      zed by TbSetup.
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.                                        I - 9
  865.  
  866.  
  867. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  868.  
  869.  
  870.      Clear read-only attributes 
  871.  
  872.      This option can be used to reverse the operation of option 'read-only'.
  873.      If you enable this option all read-only attributes of all executable
  874.      files will be cleared.
  875.  
  876.  
  877.      Sub-Directory scan 
  878.  
  879.      By default TbSetup will search sub-directories for executable files,
  880.      unless a filename (wildcards allowed!) has been specified. If you
  881.      disable this option, TbSetup will not process sub-directories.
  882.  
  883.  
  884.      +----Main menu-----+
  885.      |  Confi+-----TbSetup menu------+
  886.      |  TbSet|  Start+-----TbSetup flags------+
  887.      |  TbSca|  Optio|v Use normal flags      |
  888.      |  TbUti|  Flags|  Set flags manually    |
  889.      |  TbCLe|  Data |  Reset flags manually  |
  890.      |  TBAV |  View |  Define flags         >|
  891.      |  Docum+-------+------------------------+
  892.      |  Register TBAV   |
  893.      |  Quit and save   |
  894.      |  eXit (no save)  |
  895.      +------------------+
  896.  
  897.  
  898.      Set flags manually 
  899.  
  900.      This option is for advanced users only. With this option you can manual-
  901.      ly set permission flags in the Anti-Vir.Dat record. This option requires
  902.      a hexadecimal bitmask for the flags to set. For information about the
  903.      bitmask consult the TbSetup.Dat file. 
  904.  
  905.      Option format: Set =<flags>
  906.  
  907.      Example: 
  908.           Set = 0001
  909.  
  910.  
  911.      Reset flags manually 
  912.  
  913.      This option is for advanced users only. With this option you can manual-
  914.      ly reset permission flags or prevent flags to be set in the Anti-Vir.Dat
  915.      record. This option requires a hexadecimal bitmask for the flags to
  916.      reset.  For information about the bit mask consult the TbSetup.Dat file.
  917.      Option format: Reset =<flags>
  918.  
  919.      Example:
  920.           Reset = 0001
  921.  
  922.  
  923.                                       I - 10
  924.  
  925.  
  926. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  927.  
  928.  
  929.      +----Main menu-----+
  930.      |  Confi+-----TbSetup menu------+
  931.      |  TbSet|  Start+-----TbSetup flags------+
  932.      |  TbSca|  Optio|v Use n+--Define flags to be changed--+
  933.      |  TbUti|  Flags|  Set f|  0001: Heuristic analysis    |
  934.      |  TbCLe|  Data |  Reset|  0002: Checksum changes      |
  935.      |  TBAV |  View |  Defin|  0004: Disk image File       |
  936.      |  Docum+-------+-------|  0008: Readonly sensitive    |
  937.      |  Register TBAV   |    |  0010: TSR program           |
  938.      |  Quit and save   |    |  0020: Direct disk access    |
  939.      |  eXit (no save)  |    |  0040: Attribute modifier    |
  940.      +------------------+    |  8000: Interrupt rehook      |
  941.                              +------------------------------+
  942.  
  943. 3.3. Command line options
  944.  
  945.      TbSetup allows options to be specified on the command line.  TbSetup
  946.      recognizes option short-keys and option words. The words are easier to
  947.      memorize, and they will be used in this manual for convenience. The
  948.      syntax is as follows:
  949.  
  950.           TbSetup [<path>][<filename>]... [<options>]...
  951.  
  952.  
  953.      option parameter      short  explanation
  954.      ----------------------------------------------------------------
  955.      help                  he   help
  956.      pause                 pa   enable 'Pause' prompt
  957.      mono                  mo   force monochrome
  958.      nosub                 ns   skip sub-directories
  959.      newonly               no   do not update changed records
  960.      alldrives             ad   process all local fixed drives
  961.      allnet                an   process all network drives
  962.      remove                rm   remove Anti-Vir.Dat files
  963.      test                  te   do not create / change anything
  964.      nohidden              nh   do not make Anti-Vir.Dat files hidden 
  965.      readonly              ro   set read-only attribute on executables
  966.      nordonly              nr   remove / do not set read-only attribute
  967.      set     =<flags>      se   set flags
  968.      reset   =<flags>      re   reset flags / do not set flags
  969.      datfile [=<filename>] df   data file to be used
  970.  
  971.  
  972.      help (he)
  973.      If you specify this option, TbSetup displays the contents of the TBSE-
  974.      TUP.HLP file (if available) in the home directory of TbSetup.  If you
  975.      specify the '?' option you will get the summarized help info as listed
  976.      above.
  977.  
  978.  
  979.  
  980.  
  981.  
  982.                                       I - 11
  983.  
  984.  
  985. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  986.  
  987.  
  988.      pause (pa)
  989.      When you specify 'pause' TbSetup will stop after it has processed the
  990.      contents of one window. This gives you the possibility to examine the
  991.      results.
  992.  
  993.      mono (mo)
  994.      This option forces TbSetup to refrain from using colors in the screen
  995.      output. This might enhance the screen output on some LCD screens or
  996.      color-emulating monochrome systems.
  997.  
  998.      nosub (ns)
  999.      By default TbSetup will search sub-directories for executable files,
  1000.      unless a filename (wildcards allowed!) has been specified. If you
  1001.      specify this option, TbSetup will not process sub-directories.
  1002.  
  1003.      newonly (no)
  1004.      If you want to add new files to the Anti-Vir.Dat database, but prevent
  1005.      the information of changed files from being updated, use option 'newon-
  1006.      ly'. Updating the information of changed files is dangerous because if
  1007.      the files are infected, the information to detect and cure the virus
  1008.      will be overwritten. Option 'newonly' prevents the information from
  1009.      being overwritten but it still allows information of new files to be
  1010.      added to the database.
  1011.  
  1012.      alldrives (ad)
  1013.      If you want TbSetup to process all local non-removable drives you can
  1014.      specify this option. Except for the initial execution, it isn't a good
  1015.      idea to use this option.
  1016.  
  1017.      allnet (an)
  1018.      If you want TbSetup to process all network drives you can specify this
  1019.      option. Except for the initial execution, it isn't a good idea to use
  1020.      this option.
  1021.  
  1022.      remove (rm)
  1023.      If you want to stop using the ThunderBYTE utilities you do not have to
  1024.      remove all the Anti-Vir.Dat files yourself. By using this option TbSetup
  1025.      will neatly remove all Anti-Vir.Dat files from your system.
  1026.  
  1027.      test (te)
  1028.      If you want to see the effect of an option without the risk that somet-
  1029.      hing is activated you do not want, use option 'test'. If that option is
  1030.      specified the program will behave as it would normally, but it will not
  1031.      change or update anything on your
  1032.      hard disk.
  1033.  
  1034.      nohidden (nh)
  1035.      The Anti-Vir.Dat files are normally not visual in a directory listing.
  1036.      If you prefer to have normal - i.e. visible - files specify this option.
  1037. =>   Note that this option only applies for new Anti-Vir.Dat files.
  1038.  
  1039.      readonly (ro)
  1040.  
  1041.                                       I - 12
  1042.  
  1043.  
  1044. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1045.  
  1046.  
  1047.      As TbFile guards the read-only attribute permanently it is highly
  1048.      recommended to make all executable files read-only to prevent any
  1049.      modifications on these files. TbSetup will do the job if you enable
  1050.      option 'read-only'. Files that should not be made read-only are recogni-
  1051.      zed by TbSetup.
  1052.  
  1053.      nordonly (nr)
  1054.      This option can be used to reverse the operation of option 'read-only'.
  1055.      If you enable this option all read-only attributes of all executable
  1056.      files will be cleared.
  1057.  
  1058.      set (se)
  1059.      This option is for advanced users only. With this option you can manual-
  1060.      ly set permission flags in the Anti-Vir.Dat record. This option requires
  1061.      a hexadecimal bitmask for the flags to set. For information about the
  1062.      bitmask consult the TbSetup.Dat file. 
  1063.      Option format: Set =<flags>
  1064.  
  1065.      Example:
  1066.           Set = 0001
  1067.  
  1068.      reset (re)
  1069.      This option is for advanced users only. With this option you can manual-
  1070.      ly reset permission flags or prevent flags to be set in the Anti-Vir.Dat
  1071.      record. This option requires a hexadecimal bitmask for the flags to
  1072.      reset.  For information about the bit mask consult the TbSetup.Dat file.
  1073.      Option format: Reset =<flags>
  1074.  
  1075.      Example:
  1076.           Reset = 0001
  1077.  
  1078.      datfile (df)
  1079.      After the datfile option you can specify the name of the data file to be
  1080.      used.
  1081.  
  1082.  
  1083. 3.4. While executing
  1084.  
  1085.      TbSetup divides the screen into three windows: an information window
  1086.      displaying data file comments across the top of the screen, a scanning
  1087.      window on the left and a status window on the right.
  1088.  
  1089.      The lower left window lists the names of the files being processed,
  1090.      along with file specific information:
  1091.  
  1092.  
  1093.      TEST.EXE 01234  12AB23CD   Added    * 0001
  1094.      |        |      |          |        | |
  1095.      |        |      |          |        | |
  1096.      |        |      |          |        | 'flags' set for this file
  1097.      |        |      |          |        indicates 'special' file
  1098.      |        |      |          action performed
  1099.  
  1100.                                       I - 13
  1101.  
  1102.  
  1103. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1104.  
  1105.  
  1106.      |        |      32-bit CRC (checksum)
  1107.      |        file size in hexadecimal number
  1108.      name of file in process
  1109.  
  1110.  
  1111.      Do not be concerned if the information flies too fast for you to read,
  1112.      or if it puzzles you. You will probably never need these details anyway.
  1113.  
  1114.      The scanning window has an 'action performed' field indicating whether
  1115.      an entry in the Anti-Vir.Dat was added, changed or updated:
  1116.  
  1117.      Added
  1118.      There was no previous entry for this file in the Anti-Vir.Dat record. A
  1119.      new entry has been added.
  1120.  
  1121.      Changed
  1122.      There was an existing entry, but the file has been changed. The Anti-
  1123.      Vir.Dat information has been updated.
  1124.  
  1125.      Updated
  1126.      There was an Anti-Vir.Dat record and the file was found to be unchanged.
  1127.      TbSetup did, however, change some of the program's permission flags, on
  1128.      account of an entry in the TbSetup.Dat file, or in compliance with a
  1129.      'Set' or 'Reset' option. 
  1130.  
  1131.      The process may be aborted by pressing Ctrl-Break.
  1132.  
  1133.  
  1134.      Purpose of the TbSetup.Dat file
  1135.  
  1136.      Although the ThunderBYTE utilities perform well on almost every file
  1137.      without extra help, there are some files that need particular attention.
  1138.      TbSetup uses information collected in a special data file, TbSetup.Dat,
  1139.      to flag such files in the Anti-Vir.Dat file. The other ThunderBYTE
  1140.      utilities then use that information to determine how such a 'special'
  1141.      file should be treated:
  1142.  
  1143.  
  1144.      Examples of such files:
  1145.  
  1146.      Some programs maintain configuration information inside the executable
  1147.      file (EXE, COM) itself. Whenever you change the configuration of these
  1148.      programs, the executable file will change as well, along with its
  1149.      checksum. The new checksum will not match the one stored in the TbSe-
  1150.      tup.Dat file anymore. Since some ThunderBYTE utilities use this checksum
  1151.      information to verify integrity or cleanup results, they need to 'know'
  1152.      when a file's checksum is not a fixed item and should be allowed to
  1153.      change.
  1154.  
  1155.      TbScan can use generic detection methods such as 'heuristic' analysis to
  1156.      detect unknown viruses. Since heuristic analysis implies inevitable
  1157.  
  1158.  
  1159.                                       I - 14
  1160.  
  1161.  
  1162. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1163.  
  1164.  
  1165.      false alarms when a file looks like a virus, TbScan may have to decide
  1166.      not to do a heuristic analysis on such a program.
  1167.  
  1168.      Some of the ThunderBYTE utilities guard the read-only attribute and make
  1169.      sure that it can be removed only with the user's explicitpermission. A
  1170.      few programs, however, refuse to run properly with the read-only attri-
  1171.      bute set.
  1172.  
  1173.      TbScan's default scanning method performs perfectly well with just about
  1174.      any file, but there are some that need special analysis. Such a file is
  1175.      the Novell NET$DOS.SYS file, not a device driver - as the filename
  1176.      extension suggests - but a disk image of the bootable disk. It should be
  1177.      scanned completely and for all signatures, including COM and BOOT.
  1178.  
  1179.      The resident monitoring utilities of the TBAV package detect all sorts
  1180.      of virus-specific behaviour. Some programs, even though they may act
  1181.      like a virus, are still perfectly normal and should be permitted to be
  1182.      executed without TBAV interference.
  1183.  
  1184.      You need not be concerned to find that a few files will be excluded from
  1185.      heuristic analysis. Those files will still be scanned the conventional
  1186.      way for signatures and all the rest. Furthermore, no heuristic exclusion
  1187.      will be granted unless a file matches exactly with the entry in the
  1188.      TbSetup.Dat file - including its name, size and the 32-bit CRC checksum.
  1189.      This eliminates security holes effectively: if a listed file is already
  1190.      infected, its checksum won't match the 32-bit CRC in the TbSetup.Dat
  1191.      file and the exclusion will not apply. By the same token, if a program
  1192.      is infected at a later date, the result would be a change in at least
  1193.      one of its characteristics; the record in the Anti-Vir.Dat file will not
  1194.      match any longer and the file will be subject to full heuristic analysis
  1195.      like any other.
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.                                       I - 15
  1219.  
  1220.  
  1221. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1222.  
  1223.  
  1224. 4. TbDriver
  1225.  
  1226. 4.1. Purpose of TbDriver
  1227.  
  1228.      TbDriver does not provide much protection against viruses by itself, but
  1229.      must be loaded in advance to enable the memory resident ThunderBYTE
  1230.      Anti-Virus utilities, such as TbScanX, TbCheck, TbMem, TbFile and
  1231.      TbDisk, to perform properly. It is the source for some of the routines
  1232.      these utilities have in common, including support to generate the pop-up
  1233.      window routines, driving the translation unit which enables the possibi-
  1234.      lity of displaying messages in your native language, and support for
  1235.      networks.
  1236.  
  1237.      In addition, TbDriver also contains basic protection against 'Stealth'
  1238.      viruses and against ANSI bombs.
  1239.  
  1240.  
  1241.      How to use TbDriver
  1242.  
  1243.      Loading TbDriver must be loaded before (one of) the other memory TbDri-
  1244.      ver resident TBAV utilities. For loading instructions, please consult
  1245.      the following pages.
  1246.  
  1247. =>   If you want protection against ANSI-bombs, you should load TbDriver
  1248.      AFTER the ANSI driver.
  1249.  
  1250.      In normal situations it is not necessary to use the 'net' option of
  1251.      TbDriver.
  1252.  
  1253.      If you install TbDriver on a machine that is booted from a boot ROM,
  1254.      specify the message file with the drive and path where it can be found
  1255.      AFTER the machine has booted. The default message file will not be
  1256.      accessible anymore after the machine has booted.
  1257.  
  1258.  
  1259. 4.2. Command line options
  1260.  
  1261.      Tbdriver allows loading options to be specified on the command line. A
  1262.      filename specification will be treated as a language file specification.
  1263.      The upper three options are always available, the other options are only
  1264.      available if TbDriver is not already memory resident.
  1265.  
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.                                       I - 16
  1278.  
  1279.  
  1280. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1281.  
  1282.  
  1283.      option  parameter    short explanation
  1284.      -------------------- ----- ---------------------------
  1285.  
  1286.      help                 ?     display this helpscreen
  1287.      net                  n     force LAN support
  1288.      remove               r     remove TbDisk from memory
  1289.      mode    =<m|c>       m     override video mode
  1290.  
  1291.      freeze               j     freeze machine after an alert
  1292.      lcd                  l     enhance output on LCD screens
  1293.      noavok  =<drives>    o     assume permission when AV record is missing
  1294.      quiet                q     do not display activity
  1295.      secure               s     do not allow permission updates
  1296.      notunnel             t     do not detect tunneling
  1297.      nofilter             f     do not filter dangerous ANSI codes
  1298.      nostack              ns    do not install a stack
  1299.  
  1300.  
  1301.      help (?)
  1302.      If you specify this option TbDriver will show you the valid command line
  1303.      options as listed above.
  1304.  
  1305.      net (n)
  1306.      TbDriver cooperates well with most networks; in normal situations option
  1307.      'net' will not be needed at all. It should be used only if all of the
  1308.      following conditions are true: A connection to a Novell network is made,
  1309.      and TbDriver.Exe is started before the logon command was used, and there
  1310.      is no valid Anti-Vir.Dat record in the directory where the NET?.COM
  1311.      program resides, or after the NET?.COM file has been renamed.
  1312.  
  1313.      remove (r)
  1314.      This option disables TbDriver and will try to remove the resident part
  1315.      of its code from memory in an attempt to restore this memory space back
  1316.      to the system. Unfortunately, this can work only if TbDriver was loaded
  1317.      last. An attempt to remove a TSR after another TSR has been started will
  1318.      simply leave a useless gap in memory and could disrupt the interrupt
  1319.      chain. TbDriver checks whether it is safe to remove its resident code;
  1320.      if not, it will simply disable itself. 
  1321.  
  1322.      mode (m)
  1323.      On dual video systems TbDriver will use the currently active screen. It
  1324.      may be forced to use the alternate screen with option 'mode=m' for
  1325.      monochrome, or 'mode=c' for color systems.
  1326.  
  1327.      freeze (j)
  1328.      This option causes TbDriver to freeze the machine after a TbDriver
  1329.      message has been displayed. This prevents users to answer TbDriver
  1330.      messages without permission from the supervisor.
  1331.  
  1332.      lcd (l)
  1333.      This option improves the readability of the TbDriver messages on LCD
  1334.      screens.
  1335.  
  1336.                                       I - 17
  1337.  
  1338.  
  1339. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1340.  
  1341.  
  1342.  
  1343.      noavok (o)
  1344.      This option is not recommended for normal usage. You may need it in
  1345.      order to grant permission automatically for programs without an Anti-
  1346.      Vir.Dat record. Option 'noavok' requires a parameter specifying the
  1347.      drives to which the default permission applies. If, for example, you do
  1348.      not want a message from TbMem when a TSR without Anti-Vir.Dat record is
  1349.      executed from drive E: and F:, you could specify 'noavok=ef' on the
  1350.      TbDriver command line. If you do want to exclude network drives you
  1351.      should specify an asterisk (*). So, if you want to grant permission for
  1352.      all files without Anti-Vir.Dat records on drive A:, your ramdisk F: and
  1353.      your remote network drives, specify 'noavok=af*'.
  1354.  
  1355.      quiet (q)
  1356.      Some resident TBAV utilities display an activity status. TbScanX, for
  1357.      instance, displays a rectangle with "*Scanning*" in the upper left
  1358.      corner of your screen while scanning a file. You can disable this with
  1359.      the 'quiet' option when TbDriver is loaded.
  1360.  
  1361.      secure (s)
  1362.      Some ThunderBYTE utilities are able to store permission flags in the
  1363.      Anti-Vir.Dat files. If you don't want these flags to be changed, specify
  1364.      this option. It has no effect on flags that are already set, so the
  1365.      option 'secure' may be used after installing new programs or packages.
  1366.  
  1367.      notunnel (t)
  1368.      TbDriver normally detects tunneling attempts on the part of viruses.
  1369.      'Tunneling' is a technique viruses apply to determine the location of
  1370.      the DOS system code in memory, and to use that address to communicate
  1371.      with DOS directly. This will inactivate all TSR programs, including
  1372.      resident anti-virus software. TbDriver is able to detect 'tunneling'
  1373.      attempts, and informs you about this. Some other anti-virus products
  1374.      also rely on tunneling techniques to bypass resident viruses, causing
  1375.      false alarms. If you are currently executing other anti-viral products,
  1376.      option 'notunnel' will disable tunneling detection.
  1377.  
  1378.      nofilter (f)
  1379.      The original ANSI driver has a feature to assign text strings to keys.
  1380.      Years ago, people used this feature to assign - for instance - the F10
  1381.      key to the text 'DIR /W'. This reprogramming can simply be done with
  1382.      embedded ANSI codes in text files. Typing such a file with the DOS
  1383.      'type' command is enough to reprogram the keys. Today, almost nobody
  1384.      uses this feature anymore, but it is still there. Some ill-minded people
  1385.      however use this feature to make a text file which reprograms - for
  1386.      instance - the Enter key to execute the text 'Del *.*', or worse...
  1387.      Such a text file is called an ANSI-bomb. TbDriver protects you against
  1388.      ANSI-bombs by filtering out the keyboard reprogramming codes. All other
  1389.      ANSI codes will pass without interference. If you don't want this
  1390.      protection, or if you want to use this obsolete ANSI feature you can
  1391.      specify option 'nofilter'.
  1392.  
  1393.  
  1394.  
  1395.                                       I - 18
  1396.  
  1397.  
  1398. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1399.  
  1400.  
  1401.      nostack (ns)
  1402.      By default, TbDriver maintains a stack for the resident TBAV utilities.
  1403.      For most systems however this isn't necessary. If you specify option
  1404.      'nostack' TbDriver will use the application stack, saving a few hundred
  1405.      bytes of memory. However, if the system hangs or becomes unstable, you
  1406.      should discontinue use of this option.
  1407.  
  1408.  
  1409. 4.3. Language support
  1410.  
  1411.      The optional filename specification is used to determine where the
  1412.      language file can be found. TbDriver retrieves pop-up window messages
  1413.      from a TBDRIVER.LNG file, which it expects to find in its own home
  1414.      directory. The default English language file is TBDRIVER.LNG, which may
  1415.      be replaced by a file in your local language. You can order separate
  1416.      language support packages at your local ThunderBYTE dealer, or download
  1417.      the language file from a ThunderBYTE support BBS. Please refer to page
  1418.      I-38 for further details. To load a localized language file, either
  1419.      rename it to the default original, or specify the full path and filename
  1420.      following the command. You may also switch to another language by
  1421.      calling TbDriver again with a different message file. This will not take
  1422.      up any extra memory.
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.                                       I - 19
  1455.  
  1456.  
  1457. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1458.  
  1459.  
  1460. 5. System maintenance
  1461.  
  1462.      All systems need maintenance and so do the TBAV utilities. As new
  1463.      viruses emerge, TbScan's signature file must be updated to avert new
  1464.      dangers. You may either get the latest signature file from your local
  1465.      ThunderBYTE dealer or download the file from one of our support Bulletin
  1466.      Board Systems.
  1467.  
  1468.      Whenever you add, update or replace programs on your system, be sure to
  1469.      use TbSetup to generate or update their fingerprints in the Anti-Vir.Dat
  1470.      files. Sometimes you will want to create a new recovery diskette. When
  1471.      you install a new version of DOS, the bootsector will be different.
  1472.      Changing the configuration of your hard disks may affect the partition
  1473.      tables and the CMOS setup. You should prepare a new recovery diskette
  1474.      after all system modifications.
  1475.  
  1476.  
  1477.      Updates
  1478.  
  1479.      The ThunderBYTE Anti-Virus utilities are updated at frequent intervals.
  1480.      Subscription to the ThunderBYTE update service (at your local dealer)
  1481.      guarantees delivery of each new update. You may download new revisions
  1482.      any time from any ThunderBYTE support BBS. Or check with a local bulle-
  1483.      tin board regularly, as many of them offer updated versions of our
  1484.      software.
  1485.  
  1486.      The standard complete release is issued in an archive named:
  1487.      TBAVxxx.ZIP, where 'xxx' stands for the three-digit version number. The
  1488.      archive extension may vary on local bulletin boards using a different
  1489.      archive method.
  1490.  
  1491.      TBAV-for-Windows is distributed in an archive named TBAVWxxx.Zip. Note
  1492.      that you need to download the DOS version of TBAV in addition to this
  1493.      archive.
  1494.  
  1495.      The resident ThunderBYTE Anti-Virus utilities are also available in
  1496.      processor optimized formats. These processor optimized versions, named
  1497.      TBAVXxxx.ZIP, are for registered users only. You can purchase these
  1498.      versions via your local ThunderBYTE dealer.
  1499.  
  1500.  
  1501.      Language support
  1502.  
  1503.      The ThunderBYTE Anti-Virus utilities currently support several langua-
  1504.      ges, by means of separate language files. Check your local ThunderBYTE
  1505.      dealer for the availability of the TBAV support file in your language.
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.                                       I - 20
  1514.  
  1515.  
  1516. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1517.  
  1518.  
  1519. 6. Network maintenance
  1520.  
  1521.      The signature file TbScan.Sig should be replaced frequently. This can be
  1522.      a lot of work if you want to update all work stations on a network
  1523.      manually. Fortunately, there are several possibilities to do this job
  1524.      automatically.
  1525.  
  1526.  
  1527. 6.1. Using DOS REPLACE
  1528.  
  1529.      Maintain a directory \TBAV_UPD\ on a public server drive. Any new
  1530.      version of the TBAV utilities or any new signature file TbScan.Sig
  1531.      should be placed it in this directory.
  1532.  
  1533.      The work stations should execute a batch file automatically after users
  1534.      log in on the network. This batch file should contain the following
  1535.      lines:
  1536.  
  1537.           rem Update the anti-virus product if a new one is available.
  1538.           replace x:\tbav_upd\*.* c:\tbav /u /r
  1539.  
  1540.      'Replace' is a standard DOS utility. It copies the files specified by
  1541.      the first parameter ONLY if they are newer than the files specified in
  1542.      the second parameter.
  1543.  
  1544.      Make sure the 'replace' command is in the current path, and that the
  1545.      specified paths are valid for your configuration. The 'x', used in the
  1546.      above example, denotes the drive specification.
  1547.  
  1548.      Thus, you only have to update one drive with the new signature file or
  1549.      anti-virus software, and all workstations will update themselves as soon
  1550.      as they log in! You can also add the /S option if you want REPLACE to
  1551.      scan all directories on the workstations' drives for matching files.
  1552.      Please consult the DOS manual for more details.
  1553.  
  1554. =>   Note: Do not forget to execute TbSetup on the new utilities in the
  1555.      x:\tbav_upd directory, thus ensuring that the REPLACE command also
  1556.      copies the new Anti-Vir.Dat file.
  1557.  
  1558.  
  1559. 6.2. Using PkUnZip
  1560.  
  1561.      Maintain a directory \TBAV_UPD\ on a public server drive. Any new
  1562.      version of the TBAV distribution archive should be placed in this
  1563.      directory.
  1564.  
  1565.      The work stations should execute a batch file automatically after users
  1566.      log in on the network. This batch file should contain the following
  1567.      lines:
  1568.  
  1569.           rem Update the anti-virus product if a new one is available.
  1570.           PkUnZip -n -o x:\tbav_upd\TBAV???.ZIP c:\tbav
  1571.  
  1572.                                       I - 21
  1573.  
  1574.  
  1575. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                 SECTION I
  1576.  
  1577.  
  1578. =>   Make sure the file PkUnZip.Exe is in the current path, and that the
  1579.      paths specified are valid for your configuration.
  1580.  
  1581.      Following this procedure, the 'PkUnZip' command will only come into
  1582.      action when you just updated the ZIP files in the x:\tbav_upd directory.
  1583.      Now you only have to update one drive with the new anti-virus software,
  1584.      and all workstations will update themselves as soon as they log in!
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.                                       I - 22
  1632.  
  1633.  
  1634. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION II
  1635.  
  1636.  
  1637. SECTION II. ANTI-VIRUS STRATEGY
  1638.  
  1639. 1. Protection against viruses
  1640.  
  1641. 1.1. Introduction
  1642.  
  1643.      Maintaining a reliable safety system implies that you will be active in
  1644.      taking measures to protect your system from virus infection, since some
  1645.      viruses can hide themselves perfectly once resident in memory. At least
  1646.      once every a week you should boot from a clean and write-protected
  1647.      diskette and execute TbScan.
  1648.  
  1649.      The tightness of your safety system very much depends on the amount of
  1650.      time you want to invest to let the safety measures take place and the
  1651.      vitality of the appropriate computer system. For use on a stand alone
  1652.      computer containing low risk data, in an environment with little exchan-
  1653.      ge of computer software, a daily scan will appear to be sufficient.
  1654.  
  1655.      For company use however, in a network environment where diskettes are
  1656.      exchanged frequently, where disks contain highly vulnerable information,
  1657.      where a network going 'down' means the loss of an extensive amount of
  1658.      money, protection must be as tight as the organisation can practically
  1659.      handle.
  1660.  
  1661.      Considering the above, a simple instruction on how to use the -highly
  1662.      flexible - TBAV utilities cannot be given. It all depends on your own
  1663.      demands and possibilities.
  1664.  
  1665.      Therefore, you are advised to study this manual thoroughly so you will
  1666.      be able to determine your own safety measures. To prevent viruses from
  1667.      doing any harm you should at least under-take the activities as presen-
  1668.      ted below. 
  1669.  
  1670.  
  1671. 1.2. Basic precautions
  1672.  
  1673.      1. Install TBAV on your hard disk
  1674.  
  1675.      You may customize the installation to suit your own needs. Make sure you
  1676.      use TbSetup to maintain recovery information of all executable files of
  1677.      your system! Please refer to the installation section (I) of this
  1678.      manual. 
  1679.  
  1680.      In the following examples it is assumed that all utilities are copied in
  1681.      the (default) directory named TBAV. For all example setups it is requi-
  1682.      red that TbSetup has been executed. If your system has more hard disks
  1683.      or disk partitions you should repeat the TbSetup invocation for every
  1684.      drive or partition.
  1685.  
  1686.      The example setups assume you have created a recovery diskette.
  1687.  
  1688.  
  1689.  
  1690.                                       II - 1
  1691.  
  1692.  
  1693. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION II
  1694.  
  1695.  
  1696.      The example setups outlined below are just intended to give you some
  1697.      ideas about the use of the TBAV utilities, and these examples are not
  1698.      intended as a full featured protection setup!
  1699.  
  1700.  
  1701.      2. Prepare a recovery diskette
  1702.  
  1703.      You will absolutely need a clean recovery diskette in order to be able
  1704.      to get rid of a virus at all later on. Take a few minutes to prepare one
  1705.      now well ahead of a possible future contamination when it would be too
  1706.      late. 
  1707.  
  1708.      Take a new, empty diskette, put it in drive A:, go to your DOS directory
  1709.      and execute the following commands:
  1710.  
  1711.           Format A: /S 
  1712.           Copy SYS.COM A:
  1713.  
  1714.      Now return to the TBAV directory, eg.:
  1715.  
  1716.           CD \TBAV
  1717.  
  1718.      Execute the MakeResc batch file:
  1719.  
  1720.           makeresc A:
  1721.  
  1722.      The MakeResc batch file will create a reliable recovery diskette by
  1723.      creating or copying the following files.
  1724.  
  1725.      -    A backup of the bootsector, partition sector and CMOS configu-
  1726.           ration.
  1727.  
  1728.      -    A Config.Sys file, containing:
  1729.  
  1730.           Files=20
  1731.           Buffers=20
  1732.           Device=TbDriver.Exe
  1733.           Device=TbCheck.Exe FullCRC
  1734.  
  1735.      -    An Autoexec.Bat file, containing:
  1736.  
  1737.           @echo off
  1738.           echo off
  1739.           PATH=A:\
  1740.           TBAV
  1741.           Cls
  1742.           Echo Warning!!!
  1743.           Echo If you suspect a virus, do NOT execute anything
  1744.           Echo from the hard disk!
  1745.  
  1746.  
  1747.  
  1748.  
  1749.                                       II - 2
  1750.  
  1751.  
  1752. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION II
  1753.  
  1754.  
  1755.      -    The following files:
  1756.  
  1757.           TBAV.EXE
  1758.           TBAV.LNG
  1759.           TBSCAN.EXE
  1760.           TBSCAN.LNG
  1761.           TBSCAN.SIG
  1762.           TBDRIVER.EXE
  1763.           TBDRIVER.LNG
  1764.           TBCHECK.EXE
  1765.           TBCLEAN.EX
  1766.           TBUTIL.EXE
  1767.           TBUTIL.LNG
  1768.  
  1769.      Copy to the diskette any other utilities that could come in handy in an
  1770.      emergency situation, including a simple editor to edit Config.Sys and
  1771.      AutoExec.Bat files. If your hard disk needs special device drivers to
  1772.      unlock added features, such as DoubleSpace or Stacker, copy the approp-
  1773.      riate drivers to the recovery diskette and install them in the Con-
  1774.      fig.Sys file on drive A:, taking care to avoid statements that will
  1775.      access the hard disk. Be sure to check the instructions in the device
  1776.      driver's manual for the correct procedures.
  1777.  
  1778.      Make the disk write protected. Label the diskette 'Recovery' together
  1779.      with a short of the PC the diskette belongs to. Store the diskette in a
  1780.      safe place. Use it only in case of an emergency, so make a copy if you
  1781.      need a similar diskette for general purposes.
  1782.  
  1783.  
  1784.      3. Keep shady software out
  1785.  
  1786.      Many companies do not allow employees to install or execute unauthorized
  1787.      software. Or perhaps you wish to keep family members from invading your
  1788.      computer with haphazard games and sundry software. TBAV provides a
  1789.      watchdog function that can help to enforce this. First you will need to
  1790.      add the following lines to the Config.Sys file:
  1791.  
  1792.           Device=C:\TBAV\TbDriver.Exe
  1793.           Device=C:\TBAV\TbCheck.Exe secure
  1794.  
  1795.      If you have installed the TBAV Utilities using the TBAV installation
  1796.      program, you can - instead of editing the CONFIG.SYS file - adjust the
  1797.      TBSTART.BAT file, appending the 'secure' option to the TbCheck command:
  1798.  
  1799.           C:\TBAV\TbDriver
  1800.           C:\TBAV\TbCheck secure
  1801.  
  1802.      Execute TbSetup on the system:
  1803.  
  1804.           TbSetup C:\
  1805.  
  1806.  
  1807.  
  1808.                                       II - 3
  1809.  
  1810.  
  1811. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION II
  1812.  
  1813.  
  1814.      Reboot the system by pressing <Ctrl>-<Alt>-<Del>. From now on, TbCheck
  1815.      will put an effective clamp on any user who tries to execute software
  1816.      which has not been duly authorized first by TbSetup. Whenever someone is
  1817.      trying to execute an unknown program, TBAV will display the following
  1818.      message:
  1819.  
  1820.  
  1821.      +---------- TBAV interception ---------+
  1822.      |                WARNING!              |
  1823.      | The requested program (GAME.EXE)     |
  1824.      | is not authorized and can not be     |
  1825.      | executed.                            |
  1826.      | Execution cancelled! Press any key...|
  1827.      +--------------------------------------+
  1828.  
  1829.  
  1830.      4. Restrict user access
  1831.  
  1832.      Most of the TBAV utilities are interactive. They need to communicate
  1833.      with a knowledgable user in order to establish appropriate action in
  1834.      ambiguous situations. Many companies, however, insist that the system
  1835.      operator be the sole authority allowed to communicate with TBAV and so
  1836.      avoid wrong decisions on the part of possibly inept employees. That is
  1837.      why most of TBAV utilities support the option 'secure'. When this option
  1838.      is specified, all user interaction with any of the TBAV utilities is
  1839.      suspended. In other words, users will never be queried for permission to
  1840.      allow questionable operations, avoiding erroneous decisions which may
  1841.      well result in irreparable havoc. This option will also prevent the user
  1842.      from disabling or unloading the TBAV utilities.
  1843.  
  1844.  
  1845.      5. Never use 'strange' diskettes to boot
  1846.  
  1847.      Only boot from your hard disk or from your original DOS diskette. NEVER
  1848.      use someone else's disk to boot from. Should you have a hard disk, make
  1849.      certain that you have opened the door to your floppy drive before
  1850.      resetting or booting your PC.
  1851.  
  1852.  
  1853.      6. Use ChkDsk frequently
  1854.  
  1855.      Use the DOS program ChkDsk frequently (without the /F switch). ChkDsk is
  1856.      able to detect some viruses, because such viruses change the disk
  1857.      structure in an incorrect manner, causing disk errors in the process.
  1858.      Look out for changes in the behaviour of your software or your PC. Any
  1859.      change in their behaviour is suspect, unless you know its cause. Some
  1860.      highly suspicious symptoms are:
  1861.  
  1862.      -    The amount of available memory space has decreased.
  1863.  
  1864.      -    Programs need more time to execute.
  1865.  
  1866.  
  1867.                                       II - 4
  1868.  
  1869.  
  1870. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION II
  1871.  
  1872.  
  1873.      -    Programs do not operate as they used to, or cause the system to
  1874.           crash or reboot after some time.
  1875.  
  1876.      -    Data disappears or gets damaged.
  1877.  
  1878.      -    The size of one or more programs has increased.
  1879.  
  1880.      -    The screen behaves strangely, or unusual information is displayed.
  1881.  
  1882.      -    ChkDsk detects many errors.
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.                                       II - 5
  1927.  
  1928.  
  1929. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION II
  1930.  
  1931.  
  1932. 2. What to do when a virus strikes
  1933.  
  1934.  
  1935. 2.1. Detection of viruses
  1936.  
  1937.      The first thing to do when you become aware that your system may have
  1938.      been infected is to back up all important files immediately. Use fresh
  1939.      backup media and do not overwrite a previous back up set. You may need
  1940.      the previous set to replace lost or contaminated files. Label the new
  1941.      backup as unreliable, as some of the files may be infected.
  1942.  
  1943.      As soon as you become aware of a virus infection it is imperative that
  1944.      you boot only from a reliable, write protected recovery system diskette.
  1945.  
  1946.  
  1947.      Know the symptoms 
  1948.  
  1949.      Next, execute TbScan for an indication about what is wrong, or boot from
  1950.      a recovery diskette and compare its system files with those on the hard
  1951.      disk to check for changes. During this test you should take care to stay
  1952.      logged on to your system diskette. 
  1953.  
  1954.      TbScan will report the virus name if the virus is known, or give a
  1955.      summary of file changes if the virus cannot be identified:
  1956.  
  1957.           TbScan alldrives logname=lpt1 log
  1958.  
  1959.      Also execute TbUtil to check the bootsector, partition code and the CMOS
  1960.      configuration.
  1961.  
  1962.           TbUtil compare
  1963.  
  1964.      Do not execute any program on your hard disk to prevent a virus from
  1965.      invading the system's memory and possibly masking the test results.
  1966.      TbCheck will warn you if you accidentially try to execute an infected or
  1967.      unauthorized program on your hard disk.
  1968.  
  1969.      Please bear in mind that it is in the nature of a file virus to infect
  1970.      as many programs as possible over a short period. You'll hardly find
  1971.      only a few infected programs on a hard disk that is in constant use. A
  1972.      TbScan virus alert flagging a mere one percent of the files on a hard-
  1973.      worked system is probably just a false alarm that has nothing to do with
  1974.      a real virus.
  1975.  
  1976.      If the file compare test indicates that all of them are still the same,
  1977.      you know at least that you are not dealing with a file virus. 
  1978.      Avoid using the same copy of the TbScan program on another system after
  1979.      discovering a virus. TbScan performs a sanity check when it fires up.
  1980.      Unfortunately there is no way to make software 100% virus-resistant. A
  1981.      sanity check does not work if a 'stealth' type of virus is involved. A
  1982.      stealth virus can hide itself completely when a self-check is being
  1983.      performed. Do note that we are not dealing with a TbScan bug here. The
  1984.  
  1985.                                       II - 6
  1986.  
  1987.  
  1988. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION II
  1989.  
  1990.  
  1991.      failure to detect stealth viruses is common to all software performing a
  1992.      sanity check. Therefore, we recommend to keep a clean version of TbScan
  1993.      on a write-protected diskette. Use this diskette to check other machines
  1994.      once you have found a virus in your own system.
  1995.  
  1996.  
  1997.      Identify the characteristics
  1998.  
  1999.      Viruses come in many different guises and have their own peculiarities.
  2000.      It is extremely important to know at the earliest possible stage which
  2001.      particular kind of virus you are dealing with. That will give you at
  2002.      least some indication of the nature and the amount of the damage it may
  2003.      have caused already. Some viruses infect only executable files that can
  2004.      easily be reinstalled or replaced from a clean source. Others swap some
  2005.      random bytes anywhere on the hard disk, which could affect data files as
  2006.      well, although the results may not be noticeable for some time. Then
  2007.      there are those that damage the hard disk partition table or file
  2008.      allocation table, while some of the even nastier ones, the multipartite
  2009.      viruses, operate in more than one area.
  2010.  
  2011.      Whatever you do, don't panic! An inexperienced user, reacting in confu-
  2012.      sion, can often create more havoc than the virus itself, such as eradi-
  2013.      cating important data in no time. While an instant reformat may get rid
  2014.      of the virus, it will definitely destroy all your recent work as well.
  2015.  
  2016.      Once isolated the virus, either contact your support BBS, consult
  2017.      literature on virus problems, or get in touch with a virus expert. 
  2018.  
  2019.  
  2020. 2.2. Recovering from viruses
  2021.  
  2022.      While recovering from a virus infection it is particularly important to
  2023.      boot only from a clean write-protected system diskette. That is the only
  2024.      way to keep a virus out of the system's memory. Never execute a program
  2025.      from the hard disk.
  2026.  
  2027.      Restore the master boot sector and the DOS system files on the hard
  2028.      disk, using the SYS command on the system diskette. If the bootsector or
  2029.      partition code contains a virus, you may also use TbUtil to get rid of
  2030.      it by restoring clean sectors:
  2031.  
  2032.           TbUtil restore
  2033.  
  2034.      Many modern hard disks, notably IDE or AT drives using advanced prefor-
  2035.      matting methods, are low-level formatted by the supplier, ready for
  2036.      partitioning and a DOS format. Do not try to low-level format these
  2037.      drives yourself. It is always better to back up the partition table with
  2038.      a utility such as TbUtil, which restores the partition table for you
  2039.      without reformatting.
  2040.  
  2041.      If the virus has been identified as a file virus, it will be safest to
  2042.      remove the infected files (by using TbDel) and to copy or reinstall all
  2043.  
  2044.                                       II - 7
  2045.  
  2046.  
  2047. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION II
  2048.  
  2049.  
  2050.      executables from a clean source. A virus cleaning utility, such as
  2051.      TbClean, won't always be able to fully restore the original program code
  2052.      and should be used only as a last resort, such as when you don't have a
  2053.      reliable backup. It may be necessary to replace data files as well if
  2054.      the virus is known to cause damage in that area. 
  2055.  
  2056.      After reassuring yourself that the system is absolutely clean again, run
  2057.      a careful check on all diskettes and backups to remove every single
  2058.      trace of the virus. Keep in mind that it takes only one infected disket-
  2059.      te to cause the same trouble all over again. 
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.                                       II - 8
  2104.  
  2105.  
  2106. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2107.  
  2108.  
  2109. SECTION III. USING THE TBAV UTILITIES
  2110.  
  2111.  
  2112. 1. TbScan
  2113.  
  2114. 1.1. The Purpose of TbScan
  2115.  
  2116.      TbScan is a virus scanner: it has been specifically developed to detect
  2117.      viruses, Trojan Horses and other such threats to your valuable data.
  2118.      Most viruses consist of a unique sequence of instructions, called a
  2119.      signature. Hence through checking for the appearance of such signatures
  2120.      in a file we can find out whether or not a program has been infected.
  2121.      Scanning all program files for the signatures of all known viruses helps
  2122.      you to find out quickly whether or not your system has been infected
  2123.      and, if so, by which virus. 
  2124.  
  2125.  
  2126.      Fast Scanning
  2127.  
  2128.      TbScan is the fastest scanner on the market today, therefore it invites
  2129.      users to invoke it from within their AUTOEXEC.BAT file every morning. 
  2130.  
  2131.      TbScan checks itself on invocation. If it detects that it has been
  2132.      infected it aborts with an error. This minimizes the risk of transfer-
  2133.      ring a virus by the TbScan program itself and infecting your system.
  2134.  
  2135.      Heuristic Scanning
  2136.  
  2137.      TbScan can detect yet unknown viruses. The built-in disassembler is able
  2138.      to detect suspicious instruction sequences and abnormal program lay-
  2139.      outs. This feature is called 'heuristic scanning' and it is partially
  2140.      enabled by default. Heuristic scanning is performed on files and boots-
  2141.      ectors. 
  2142.  
  2143. =>   Note that virus scanners can only tell you whether or not your system
  2144.      has been infected and if so, if any damage has already been done. By
  2145.      that time only a non-infected backup or a recovery program such as
  2146.      TbClean can properly counter a virus infection.
  2147.  
  2148.  
  2149.      Scan Scheduling
  2150.  
  2151.      Every PC owner should use a virus scanner frequently. At least one
  2152.      should do to avoid damage caused by a virus. It is highly recommended to
  2153.      devise your own schedule for a regular scan of your system. Creating a
  2154.      special TbScan boot diskette is also recommended in this respect.
  2155.  
  2156.      The following scan sessions (listed in order of preference) are recom-
  2157.      mended:
  2158.  
  2159.      Execute TbScan from a write-protected bootable diskette once a week.
  2160.      Boot from this diskette before invoking the scanner. Booting from a
  2161.  
  2162.                                       III - 1
  2163.  
  2164.  
  2165. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2166.  
  2167.  
  2168.      diskette is the only way to make sure that no stealth virus will become
  2169.      resident in memory.
  2170.  
  2171.      Invoke a daily scan. You can invoke TbScan with the  'once' option from
  2172.      within the autoexec.bat file to perform the daily scan session automati-
  2173.      cally. It is not necessary to boot from the bootable TbScan diskette to
  2174.      perform the daily scan.
  2175.  
  2176.      Scan new diskettes.
  2177.  
  2178.  
  2179. 1.2. How to use Tbscan
  2180.  
  2181.      For daily use you can activate TbScan by loading the program from the
  2182.      DOS commandline (eg. in the autoexec.bat file), or via the TBAV menu.
  2183.      For weekly use, when scanning from the TbScan diskette, you could use
  2184.      the DOS command. The TbScan DOS options are listed in section 1.3. of
  2185.      this chapter.
  2186.  
  2187.  
  2188.      The 'TbScan' menu
  2189.  
  2190.      +----Main menu-----+
  2191.      |  Confi+----TbScan menu-----+
  2192.      |  TbSet|  Start scanning   >|
  2193.      |  TbSca|  Options menu     >|
  2194.      |  TbUti|  Advanced options >|
  2195.      |  TbCle|  If virus found   >|
  2196.      |  TBAV |  Log file menu    >|
  2197.      |  Docum|  View log file     |
  2198.      |  Regis+--------------------+
  2199.      |  Quit and save   |
  2200.      |  eXit (no save)  |
  2201.      +------------------+
  2202.  
  2203.  
  2204.      View log file
  2205.  
  2206.      If one of the log file options is activated (see below) you can study
  2207.      the log file using this option. 
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.                                       III - 2
  2222.  
  2223.  
  2224. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2225.  
  2226.  
  2227.      The 'Path' menu
  2228.  
  2229.      +----Main menu-----+
  2230.      |  Confi+----TbScan menu-----+
  2231.      |  TbSet|  Start+---------Path menu----------+
  2232.      |  TbSca|  Optio|  Specified files/paths     |
  2233.      |  TbUti|  Advan|  Current directory         |
  2234.      |  TbCle|  If vi|  Diskette in drive A:      |
  2235.      |  TBAV |  Log f|  Diskette in drive B:      |
  2236.      |  Docum|  View |  All fixed Drives          |
  2237.      |  Regis+-------|  All fixed Local drives    |
  2238.      |  Quit and save|  All fixed Network drives  |
  2239.      |  eXit (no save+----------------------------+
  2240.      +------------------+
  2241.  
  2242.  
  2243.      This menu may look different depending on your use of .SCN (configurable
  2244.      scan) files. The lay-out above appears when you don't have any .SCN
  2245.      files at all. 
  2246.  
  2247.  
  2248.      Specified files/paths
  2249.  
  2250.      This option will always present you with a prompt at which you can
  2251.      specify the drives, paths, or even files you want to scan. You can
  2252.      specify multiple path specifications separated by spaces. The field is
  2253.      initialized with the last path you scanned before you saved your confi-
  2254.      guration.
  2255.  
  2256.  
  2257.      Current directory
  2258.  
  2259.      Select this option if you want to scan the directory on your system from
  2260.      where you called the TBAV menu shell.
  2261.  
  2262.  
  2263.      Diskette in drive A: (or B:)
  2264.  
  2265.      If you want to scan multiple diskettes, you may wish to activate the
  2266.      'repeat' option of TbScan. See the 'TbScan options' menu for more
  2267.      information.
  2268.  
  2269.  
  2270.      All fixed drives
  2271.  
  2272.      This will cause all available drives (except the removable ones) to be
  2273.      scanned completely. Depending on the settings in the TBAV configuration
  2274.      menu you will be prompted to confirm the selected drives.
  2275.  
  2276.  
  2277.      All fixed Local drives
  2278.  
  2279.  
  2280.                                       III - 3
  2281.  
  2282.  
  2283. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2284.  
  2285.  
  2286.      If you are connected to a network, you probably don't want to scan the
  2287.      entire network always. With this option you just scan the drives which
  2288.      reside in your machine. Depending on the settings in the TBAV configura-
  2289.      tion menu you will be prompted to confirm the selected drives.
  2290.  
  2291.  
  2292.      All fixed Network drives
  2293.  
  2294.      With this option you can scan all network drives. Depending on the
  2295.      settings in the TBAV configuration menu you will be prompted to confirm
  2296.      the selected drives.
  2297.  
  2298.  
  2299.  
  2300.      The 'TbScan options' menu
  2301.  
  2302.      +----Main menu-----+
  2303.      |  Confi+------TbScan menu------+
  2304.      |  TbSet|  Start+-----TbScan options------+
  2305.      |  TbSca|  Optio|  Use TBAV.INI file      |
  2306.      |  TbUti|  Advan|  Prompt for pause       |
  2307.      |  TbCLe|  If vi|  Quick scan             |
  2308.      |  TBAV |  Log f|  Non-executable scan    |
  2309.      |  Docum|  View |  Maximum Compatibility  |
  2310.      |  Regis+-------|v Bootsector scan        |
  2311.      |  Quit and save|v Memory scan            |
  2312.      |  eXit (no save|  HMA scan forced        |
  2313.      +---------------|v Upper memory scan      |
  2314.                      |v Windows-OS/2-virus scan|
  2315.                      |v Sub-Directory scan     |
  2316.                      |  Repeat scanning        |
  2317.                      |v Abort on Ctrl-Break    |
  2318.                      |v Fast scrolling         |
  2319.                      +-------------------------+
  2320.  
  2321.  
  2322.      Use TBAV.INI file
  2323.  
  2324.      TbScan searches for a file named TBAV.INI in the TbScan directory. By
  2325.      enabling this option, the TbScan configuration values, saved in the
  2326.      TBAV.INI file, will also be valid when loading TbScan from the command
  2327.      line. Be careful, since options specified in the TBAV.INI file can not
  2328.      be undone on the command line. See chapter I-2 ('Configuration').
  2329.  
  2330.  
  2331.      Prompt for pause
  2332.  
  2333.      When you activate the 'pause' option TbScan will stop after it has
  2334.      checked the contents of one window. This gives you the possibility to
  2335.      examine the results without having to consult a log file afterwards.
  2336.  
  2337.  
  2338.  
  2339.                                       III - 4
  2340.  
  2341.  
  2342. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2343.  
  2344.  
  2345.      Quick scan
  2346.  
  2347.      TbScan will use the Anti-Vir.Dat files to check for file changes since
  2348.      the last time. Only if a file has been changed (CRC change) or is not
  2349.      yet listed in Anti-Vir.Dat it will be scanned. Normally TbScan will
  2350.      always scan files.
  2351.  
  2352.  
  2353.      Non-executable scan 
  2354.  
  2355.      With this option TbScan will scan non-executable files (files without
  2356.      extension COM, EXE, SYS or BIN) too. If TbScan finds out that such a
  2357.      file does not contain anything that can be executed by the processor the
  2358.      file will be 'skipped'. Otherwise the file will be searched for COM, EXE
  2359.      and SYS signatures. TbScan however will not perform heuristic analysis
  2360.      on non-executable files. Since viruses normally do not infect non-
  2361.      executable files it is not necessary to scan non-executable files too.
  2362.      We even recommend not to use this option unless you have a good reason
  2363.      to scan all files.
  2364.  
  2365.      Once again: a virus needs to be executed to perform what it is program-
  2366.      med to do, and since non-executable files will not be executed a virus
  2367.      in such a file can not do anything. For this reason viruses do not even
  2368.      try to infect such files. Some viruses however will write to non-execu-
  2369.      table files as a result of 'incorrect' programming. If so, these non-
  2370.      executable files will never harm other program or data files, but do
  2371.      contain corrupted data.
  2372.  
  2373.  
  2374.      Maximum compatibility 
  2375.  
  2376.      If you select this option, TbScan attempts to be more compatible with
  2377.      your system. Use this option if the program does not behave as you would
  2378.      expect, or even halts the system. This option will slow down the scan-
  2379.      ning process. Therefore, it should only be used if necessary. 
  2380. =>   Note that this option does not affect the results of a scan.
  2381.  
  2382.  
  2383.      Bootsector scan 
  2384.  
  2385.      Enabling this option will force TbScan to scan the bootsector as well.
  2386.  
  2387.  
  2388.      Memory scan 
  2389.  
  2390.      Enabling this option will force TbScan to scan the memory of the PC.
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396.  
  2397.  
  2398.                                       III - 5
  2399.  
  2400.  
  2401. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2402.  
  2403.  
  2404.      HMA scan forced 
  2405.  
  2406.      TbScan detects the presence of an XMS-driver, and scans HMA automa-
  2407.      tically. If you have an HMA-driver which is not compatible with the XMS
  2408.      standard you can use the 'HMA' option to force TbScan to scan HMA.
  2409.  
  2410.  
  2411.      Upper memory scan 
  2412.  
  2413.      By default TbScan identifies RAM beyond the DOS limit and scans that
  2414.      too. This means that video memory and the current EMS pages are scanned
  2415.      by default. You can use this option to enable the scanning of non-DOS
  2416.      memory.
  2417.  
  2418.  
  2419.      Windows-OS/2-virus scan
  2420.  
  2421.      TbScan also searches for Windows and OS/2 viruses. Although there exist
  2422.      only very few of these viruses, it takes TbScan relatively a lot of time
  2423.      to search for them. If you don't use Windows or OS/2 you can speed up
  2424.      TbScan by disabeling the detection of Windows and OS/2 virus detection.
  2425.  
  2426.  
  2427.      Subdirectory scan 
  2428.  
  2429.      By default TbScan will search sub-directories for executable  files,
  2430.      unless a filename (wildcards allowed!) is specified. If you disable this
  2431.      option, TbScan will not scan sub-directories.
  2432.  
  2433.  
  2434.      Repeat scanning
  2435.  
  2436.      This option is very useful if you want to check a large amount of
  2437.      diskettes. TbScan does not return to DOS after checking a disk, but it
  2438.      prompts you to insert another disk in the drive.
  2439.  
  2440.  
  2441.      Abort on Ctrl-Break
  2442.  
  2443.      You can disable this option if you don't want to be able to abort TbScan
  2444.      with Ctrl-Break.
  2445.  
  2446.  
  2447.      Fast scrolling
  2448.  
  2449.      TbScan shows the processed file in a scrolling window. There are two
  2450.      methods of scrolling: fast scrolling where the files are displayed on
  2451.      top of the previous ones if the window becomes filled, and the conventi-
  2452.      onal slow method of scrolling where the files at the bottom 'push up'
  2453.      the previous ones. By default TbScan uses the faster but less attractive
  2454.      method of scrolling.
  2455.  
  2456.  
  2457.                                       III - 6
  2458.  
  2459.  
  2460. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2461.  
  2462.  
  2463.      The 'TbScan advanced options' menu
  2464.  
  2465.      +----Main menu-----+
  2466.      |  Confi+------TbScan menu------+
  2467.      |  TbSet|  Start+------TbScan advanced options-----+
  2468.      |  TbSca|  Optio|  High heuristic sensitivity      |
  2469.      |  TbUti|  Advan|v Auto heuristic sensitivity      |
  2470.      |  TbCLe|  If vi|  Low heuristic sensitivity       |
  2471.      |  TBAV |  Log f|  Extract signatures              |
  2472.      |  Docum|  View |  Configure executable extensions |
  2473.      |  Regis+-------+----------------------------------+
  2474.      |  Quit and save   |                      
  2475.      |  eXit (no save)  |
  2476.      +------------------+
  2477.  
  2478.  
  2479.      High heuristic sensitivity 
  2480.  
  2481.      TbScan always performs a heuristic scan on the files being processed.
  2482.      However, only if a file is very probably infected with a virus, TbScan
  2483.      will report the file as being infected. If you use option 'heuristic',
  2484.      TbScan is somewhat more sensitive. In this mode 90% of the new, unknown,
  2485.      viruses will be detected without any signature, but some false alarms
  2486.      may occur. Consult also section 'Heuristic scanning' of this chapter
  2487.      (3.1).
  2488.  
  2489.  
  2490.      Auto heuristic sensitivity 
  2491.  
  2492.      TbScan automatically adjusts the heuristic detection level after a virus
  2493.      has been found. This provides you maximum detection capabilities in case
  2494.      you need it, while the amount of false alarms due to heuristics remains
  2495.      small in normal situations. In other words: as soon as a virus has been
  2496.      found, TbScan will anticipate and proceed as if 'high heuristic sensiti-
  2497.      vity' has been selected.
  2498.  
  2499.  
  2500.      Low heuristic sensitivity
  2501.  
  2502.      In this mode TbScan will almost never issue a false alarm. However still
  2503.      about 50% of the new unknown viruses will be detected.
  2504.  
  2505.  
  2506.      Extract signatures 
  2507.  
  2508.      This option is available to registered users only. See the chapter
  2509.      'TbGensig' (IV-5) on how to use the option 'extract'.
  2510.  
  2511.  
  2512.      Configure executable extensions
  2513.  
  2514.  
  2515.  
  2516.                                       III - 7
  2517.  
  2518.  
  2519. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2520.  
  2521.  
  2522.      By default, TbScan only scans file with a filename extension which
  2523.      indicates that the file is a program file. Viruses which do not infect
  2524.      executable code simply do not exist. Files with the extension EXE, COM,
  2525.      BIN, SYS, OV? are considered to be executable. 
  2526.  
  2527.      However, there are some additional files which have an internal layout
  2528.      that makes them suitable for infection by viruses. Although it is not
  2529.      likely that you will ever execute most of these files, you may want to
  2530.      scan them anyway.
  2531.  
  2532.      Some filename extensions that may indicate an executable format are:
  2533.      .DLL.SCR.MOD.CPL.00?.APP
  2534.      The first four extensions indicate Windows executable files. They
  2535.      normally display "This program requires Microsoft Windows" when you try
  2536.      to execute them, so you probably won't run these files often under DOS.
  2537.      Even when they are infected by a DOS virus they are not likely a threat
  2538.      since you don't execute them. Therefore TbScan does not scan them by
  2539.      default. To make TbScan scan these files by default, select this option
  2540.      and fill out the extensions you want to have scanned. The question mark
  2541.      as wildcard is allowed.
  2542.  
  2543.      Warning! Be careful about which extensions you specify: scanning a non-
  2544.      executable file causes unpredicatble results, and may result in false
  2545.      alarms.
  2546.  
  2547.  
  2548.      The 'If virus found' menu
  2549.  
  2550.      In this menu, you can configure the actions TbScan should take, if
  2551.      detecting a virus.
  2552.  
  2553.  
  2554.      +----Main menu-----+
  2555.      |  Confi+------TbScan menu------+
  2556.      |  TbSet|  Start+--What if a virus is found?--+
  2557.      |  TbSca|  Optio|v Present action menu        |
  2558.      |  TbUti|  Advan|  Just continue (log only)   |
  2559.      |  TbCLe|  If vi|  Delete infected file       |
  2560.      |  TBAV |  Log f|  Kill infected file         |
  2561.      |  Docum|  View |  Rename infected file       |
  2562.      |  Regis+-------+-----------------------------+
  2563.      |  Quit and save   |
  2564.      |  eXit (no save)  |
  2565.      +------------------+
  2566.  
  2567.  
  2568.      Present action menu
  2569.  
  2570.      If TbScan detects a virus, the program will display a menu containing
  2571.      the possible actions to be taken: just continu, delete or rename the
  2572.      infected file.
  2573.  
  2574.  
  2575.                                       III - 8
  2576.  
  2577.  
  2578. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2579.  
  2580.  
  2581.      Just continue (log only) 
  2582.  
  2583.      If TbScan detects an infected file it prompts the user to delete or
  2584.      rename the infected file, or to continue without action. If you select
  2585.      this option, TbScan will always continue. We highly recommend you to use
  2586.      a log file in such situations, as a scanning operation does not make
  2587.      much sense without the return messages being read (see 'Command line
  2588.      options').
  2589.  
  2590.  
  2591.      Delete infected file 
  2592.  
  2593.      If TbScan detects a virus in a file it prompts the user to delete or
  2594.      rename the infected file, or to continue without action. If you specify
  2595.      the 'delete' option, TbScan will delete the infected file automatically,
  2596.      without prompting the user first. Use this option if you have determined
  2597.      it is a virus infection. Make sure that you have a clean back-up, and
  2598.      that you really want to get rid of all infected files at once.
  2599.  
  2600.  
  2601.      Kill infected file
  2602.  
  2603.      This option is nearly the same as the 'delete' option. However, with the
  2604.      DOS 'undelete' program you can recover a deleted file, but if a file has
  2605.      been deleted with the 'kill' option, recovery is not possible anymore.
  2606.  
  2607.  
  2608.      Rename infected file 
  2609.  
  2610.      If TbScan detects a file virus it prompts the user to delete or rename
  2611.      the infected file, or to continue without action. If you select the
  2612.      'rename' option, TbScan will rename the infected file automatically,
  2613.      without prompting the user first. By default, the first character of the
  2614.      file extension will be replaced by the character 'V'. An .EXE file will
  2615.      be renamed to .VXE, and a .COM file to .VOM. This prevents the infected
  2616.      programs from being executed, spreading the infection. At the same time
  2617.      they can be kept for later examination and repair.
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.                                       III - 9
  2635.  
  2636.  
  2637. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2638.  
  2639.  
  2640.      The 'TbScan LOG' menu
  2641.  
  2642.      +----Main menu-----+
  2643.      |  Confi+------TbScan menu------+
  2644.      |  TbSet|  Start+-------TbScan LOG menu-------+
  2645.      |  TbSca|  Optio|  Log file path/name         |
  2646.      |  TbUti|  Advan|  Output to log file         |
  2647.      |  TbCLe|  If vi|  Specify log-level         >|
  2648.      |  TBAV |  Log f|  Append to existing log     |
  2649.      |  Docum|  View |  No heuristic descriptions  |
  2650.      |  Regis+-------+-----------------------------+
  2651.      |  Quit and save   |
  2652.      |  eXit (no save)  |
  2653.      +------------------+
  2654.  
  2655.  
  2656.      Log file path/name 
  2657.  
  2658.      With option logname you can specify the name of the log file to be used.
  2659.      TbScan will create the file in the current directory unless you specify
  2660.      a path and filename after selecting this option. If the log file already
  2661.      exists, it will be overwritten. If you want to print the results, you
  2662.      can specify a printer device name rather than a filename (logname=lpt1).
  2663. =>   Note: you have to combine this option with option 'log'. 
  2664.  
  2665.  
  2666.      Output to logfile 
  2667.  
  2668.      When you use this option, TbScan creates a log file. The log file lists
  2669.      all infected program files, specifying heuristic flags (see: appendix B)
  2670.      and complete pathnames.
  2671.  
  2672.  
  2673.      Append to existing log 
  2674.  
  2675.      If you use this option, TbScan will not overwrite an existing log file
  2676.      but append the new information to it. If you use this option often, it
  2677.      is recommended to delete or truncate the log file once in a while to
  2678.      avoid unlimited growth.
  2679. =>   Note: you have to combine this option with option 'log'. 
  2680.  
  2681.  
  2682.      No heuristic descriptions 
  2683.  
  2684.      If you enable this option TbScan will not specify the descrip-tions of
  2685.      the heuristic flags in the log file. The heuristic flag descriptions are
  2686.      listed in appendix B.
  2687.  
  2688.  
  2689.  
  2690.  
  2691.  
  2692.  
  2693.                                      III - 10
  2694.  
  2695.  
  2696. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2697.  
  2698.  
  2699.      The 'LOG level' menu
  2700.  
  2701.      +----Main menu-----+
  2702.      |  Confi+------TbScan menu------+
  2703.      |  TbSet|  Start+-------TbScan LOG menu-------+
  2704.      |  TbSca|  Optio|  Log f+--------Log-level menu--------+
  2705.      |  TbUti|  Advan|  Outpu|  0: Log only infected files  |
  2706.      |  TbCLe|  If vi|  Speci|v 1: Log summary too          |
  2707.      |  TBAV |  Log f|  Appen|  2: Log suspected too        |
  2708.      |  Docum|  View |  No he|  3: Log all warnings too     |
  2709.      |  Regis+-------+-------|  4: Log clean files too      |
  2710.      |  Quit and save   |    +------------------------------+
  2711.      |  eXit (no save)  |
  2712.      +------------------+
  2713.  
  2714.  
  2715.      Loglevel 
  2716.  
  2717.      These levels determine what kind of file information will be stored in
  2718.      the log file. The default log level is 1. You may select one of five log
  2719.      levels:
  2720.  
  2721.      0    Log only infected files. If there are no infected files do not
  2722.           create or change the log file.
  2723.  
  2724.      1    Log summary too. Put a summary and timestamp in the log file. Put
  2725.           only infected files in the log file.
  2726.  
  2727.      2    Log suspected too. Same as loglevel=1, but now also 'suspected'
  2728.           files are logged. Suspected files are files that would trigger the
  2729.           heuristic alarm if option 'heuristic' had been specified.
  2730.  
  2731.      3    Log all warnings too. Same as loglevel=2, but all files that have a
  2732.           warning character printed behind the filename will be logged too.
  2733.  
  2734.      4    Log clean files too. All files being processed will be put into the
  2735.           log file.
  2736.  
  2737.  
  2738. 1.3. Command line options
  2739.  
  2740.      When loaded from the DOS command line, Tbscan recognizes option short-
  2741.      keys and option words. The words are easier to memorize, and they will
  2742.      be used in this manual for convenience. TbScan searches for a file named
  2743.      TBAV.INI in the TbScan directory. 
  2744.  
  2745.      If the keyword 'UseIni' is specified in the [TbScan] section of the
  2746.      TBAV.INI file, the options will also be valid when TbScan is invoked
  2747.      from the command line. Be careful, as options specified in the TBAV.INI
  2748.      file can not be undone on the command line.
  2749.  
  2750.  
  2751.  
  2752.                                      III - 11
  2753.  
  2754.  
  2755. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2756.  
  2757.  
  2758.      option parameter        short  explanation
  2759.      -----------------------------------------------------------------
  2760.      help                    he     help 
  2761.      pause                   pa     enable 'Pause' prompt
  2762.      mono                    mo     force monochrome
  2763.      quick                   qs     quick scan (uses Anti-Vir.Dat)
  2764.      allfiles                af     scan non-executable files too
  2765.      alldrives               ad     scan all local non-removable drives
  2766.      allnet                  an     scan all network drives
  2767.      heuristic               hr     enable heuristic alerts
  2768.      extract                 ex     extract signature (registered only)
  2769.      once                    oo     only once a day
  2770.      slowscroll              ss     enable conventional (slow) scrolling
  2771.      secure                  se     user abort not allowed (reg. only)
  2772.      compat                  co     maximum-compatibility mode
  2773.      ignofile                in     ignore no-file-error
  2774.      old                     ol     disable "this program is old" message
  2775.      noboot                  nb     skip bootsector check
  2776.      nomem                   nm     skip memory check
  2777.      hma                     hm     force HMA scan
  2778.      nohmem                  nh     skip UMB/HMA scan
  2779.      nosub                   ns     skip sub-directories
  2780.      noautohr                na     auto heuristic level adjust
  2781.      nowin                   nw     do not scan for Windows/OS2 viruses
  2782.      repeat                  rp     scan multiple diskettes
  2783.      batch                   ba     batch mode. No user input
  2784.      delete                  de     delete infected files
  2785.      kill                    ki     kill infected files
  2786.      log                     lo     output to logfile
  2787.      append                  ap     log file append mode
  2788.      expertlog               el     no heuristic descriptions in log 
  2789.  
  2790.      logname  =<filename>    ln     set path/name of log file
  2791.      loglevel =<0..4>        ll     set log level
  2792.      wait     =<0...255>     wa     amount of timerticks to wait
  2793.      rename   [=<text-mask>] rn     rename infected files
  2794.      exec     =.<ext-mask>   ee     specify executable extensions
  2795.  
  2796.  
  2797.      You can find an explanation on most of the command line options at the
  2798.      similar menu descriptions presented above. 
  2799.  
  2800.      help (he)
  2801.      If you specify this option TbScan will display the help as listed above.
  2802.  
  2803.      pause (pa)
  2804.      When you activate the 'pause' option TbScan will stop after it has
  2805.      checked the contents of one window. This gives you the possibility to
  2806.      examine the results without having to consult a log file afterwards.
  2807.  
  2808.  
  2809.  
  2810.  
  2811.                                      III - 12
  2812.  
  2813.  
  2814. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2815.  
  2816.  
  2817.      mono (mo)
  2818.      This option forces TbScan to refrain from using colors in the screen
  2819.      output. This might enhance the screen output on some LCD screens or
  2820.      color-emulating monochrome systems.
  2821.  
  2822.      quick (qs)
  2823.      TbScan will use the Anti-Vir.Dat files to check for file changes since
  2824.      the last time only. Only if a file has been changed (CRC change) or is
  2825.      not yet listed in Anti-Vir.Dat it will be scanned. Normally TbScan will
  2826.      always scan files.
  2827.  
  2828.      allfiles (af)
  2829.      With this option TbScan will scan non-executable files (files without
  2830.      extension COM, EXE, SYS or BIN) too. If TbScan finds out that such a
  2831.      file does not contain anything that can be executed by the processor the
  2832.      file will be 'skipped'. Otherwise the file will be searched for COM, EXE
  2833.      and SYS signatures. TbScan however will not perform heuristic analysis
  2834.      on non-executable files.
  2835.  
  2836.      Since viruses normally do not infect non-executable files it is not
  2837.      necessary to scan non-executable files too. We even recommend not to use
  2838.      this option unless you have a good reason to scan all files. Once again:
  2839.      a virus needs to be executed to perform what it is programmed to do, and
  2840.      since non-executable files will not be executed a virus in such a file
  2841.      can not do anything. For this reason viruses do not even try to infect
  2842.      such files. Some viruses however will write to non-executable files as a
  2843.      result of 'incorrect' programming. If so, these non-executable files
  2844.      will never harm other program or data files, but do contain corrupted
  2845.      data.
  2846.  
  2847.      alldrives (ad)
  2848.      This option causes TbScan to scan all local non-removabe disks.
  2849.  
  2850.      allnet (an)
  2851.      This option causes TbScan to scan all network drives.
  2852.  
  2853.      heuristic (hr)
  2854.      TbScan always performs a heuristic scan on the files being processed.
  2855.      However, only if a file is very probably infected with a virus, TbScan
  2856.      will report the file as being infected. If you use option 'heuristic',
  2857.      TbScan is somewhat more sensitive. In this mode 90% of the new, unknown,
  2858.      viruses will be detected without any signature, but some false alarms
  2859.      may occur. Consult also section 'Heuristic scanning' of this chapter
  2860.      (3.1). 
  2861.  
  2862.      extract (ex)
  2863.      This option is available to registered users only. See the chapter
  2864.      'TbGensig' (IV-5) on how to use the option 'extract'. 
  2865.  
  2866.      once (oo)
  2867.      If you specify this option TbScan will 'remember' after its scan that is
  2868.      has been executed that day, and that it should not be executed again the
  2869.  
  2870.                                      III - 13
  2871.  
  2872.  
  2873. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2874.  
  2875.  
  2876.      same day with this particular option set. This option is very useful if
  2877.      you incorporate it in your AUTOEXEC.BAT file in combination with a scan
  2878.      list file (.SCN):
  2879.           TbScan @Everyday.Scn once rename
  2880.  
  2881.      TbScan will now scan the list of files and/or paths specified in the
  2882.      file EVERYDAY.SCN during the first boot-up of the day. 
  2883.  
  2884.      If the systems boots more often that day, TbScan will then return to DOS
  2885.      immediately.  This option does not interfere with the regular use of
  2886.      TbScan. If you invoke TbScan without the 'once' option it will always be
  2887.      executed, regardless of a previous run with the 'once' option set.
  2888.  
  2889. =>   Note that if TbScan cannot write to TBSCAN.EXE because it has been
  2890.      flagged 'read-only' or is located on a write-protected diskette, the
  2891.      'once' option will fail and the scanner will be executed without it.
  2892.  
  2893.      slowscroll (ss)
  2894.      If you specify this option, TbScan will scroll the files in the files
  2895.      window conventionally. This method is slower but looks nicer.
  2896.  
  2897.      secure (se)
  2898.      This option is available to registered users only. If this option is
  2899.      specified it is no longer possible to cancel TbScan by pressing Ctrl-
  2900.      Break, or to respond to a virus alert window.
  2901.  
  2902.      compat (co)
  2903.      If you select this option, TbScan attempts to be more compatible with
  2904.      your system. Use this option if the program does not behave as you would
  2905.      expect, or even halts the system. This option will slow down the scan-
  2906.      ning process. Therefore, it should only be used if necessary. 
  2907.      Note that this option does not affect the results of a scan.
  2908.  
  2909.      ignofile (in)
  2910.      If this option is specified and no files can be found, TbScan will not
  2911.      display the 'no files found' message, nor does it exit with errorlevel
  2912.      1. This option might be useful for automatic contents scanning.
  2913.  
  2914.      old (ol)
  2915.      This option suppresses the message which appears if TbScan is 6 months
  2916.      old.
  2917.  
  2918.      noboot (nb)
  2919.      If you specify this option TbScan will not scan the bootsector.
  2920.  
  2921.      nomem (nm)
  2922.      If you specify this option TbScan will not scan the memory of the PC for
  2923.      viruses.
  2924.  
  2925.  
  2926.  
  2927.  
  2928.  
  2929.                                      III - 14
  2930.  
  2931.  
  2932. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2933.  
  2934.  
  2935.      hma (hm)
  2936.      TbScan detects the presence of an XMS-driver, and scans HMA automa-
  2937.      tically. If you have an HMA-driver which is not compatible with the XMS
  2938.      standard you can use the 'HMA' option to force TbScan to scan HMA.
  2939.  
  2940.      nohmem (nh)
  2941.      By default TbScan identifies RAM beyond the DOS limit and scans that
  2942.      too. This means that video memory and the current EMS pages are scanned
  2943.      by default. You can use this option to disable the scanning of non-DOS
  2944.      memory.
  2945.  
  2946.      nosub (ns)
  2947.      By default TbScan will search sub-directories for executable  files,
  2948.      unless a filename (wildcards allowed!) is specified. If you enable this
  2949.      option, TbScan will not scan sub-directories.
  2950.  
  2951.      noautohr (na)
  2952.      TbScan automatically adjusts the heuristic detection level after a virus
  2953.      has been found. This provides you maximum detection capabilities in case
  2954.      you need it, while the amount of false alarms due to heuristics remains
  2955.      small in normal situations. In other words: as soon as a virus has been
  2956.      found, TbScan will anticipate and proceed as if option 'heuristic' has
  2957.      been speci-fied. If you don't want this, you can specify option 'noau-
  2958.      tohr'.
  2959.  
  2960.      nowin (nw)
  2961.      TbScan also searches for Windows and OS/2 viruses. Although there exist
  2962.      only very few of these viruses, it takes TbScan relatively a lot of time
  2963.      to search for them. If you don't use Windows or OS/2 you can speed up
  2964.      TbScan by disabeling the detection of Windows and OS/2 virus detection.
  2965.  
  2966.      repeat (rp)
  2967.      This option is very useful if you want to check a large amount of
  2968.      diskettes. TbScan does not return to DOS after checking a disk, but it
  2969.      prompts you to insert another disk in the drive.
  2970.  
  2971.      batch (ba)
  2972.      By enabling this option TbScan will scan without displaying any messa-
  2973.      ges. Therefore, the use of a LOG file is highly
  2974.      advisable.
  2975.  
  2976.      delete (de)
  2977.      If TbScan detects a virus in a file it prompts the user to delete or
  2978.      rename the infected file, or to continue without action. If you specify
  2979.      the 'delete' option, TbScan will delete the infected file automatically,
  2980.      without prompting the user first. Use this option if you have determined
  2981.      it is a virus infection. Make sure that you have a clean back-up, and
  2982.      that you really want to get rid of all infected files at once.
  2983.  
  2984.      kill (ki)
  2985.      If TbScan detects a virus in a file it prompts the user to deleter or
  2986.      rename the infected file, or to continue without action. If you specify
  2987.  
  2988.                                      III - 15
  2989.  
  2990.  
  2991. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  2992.  
  2993.  
  2994.      the 'kill' option, TbScan will delete the infected file automatically,
  2995.      without prompting the user first. However, unlike the 'delete' option,
  2996.      files which have been killed can not be undeleted anymore. Be careful if
  2997.      you use this option. Make sure you have a clean back-up!
  2998.  
  2999.      log (lo)
  3000.      When you use this option, TbScan creates a log file. The log file lists
  3001.      all infected program files, specifying heuristic flags (see: appendix B)
  3002.      and complete pathnames.
  3003.  
  3004.      append (ap)
  3005.      If you use this option, TbScan will not overwrite an existing log file
  3006.      but append the new information to it. If you use this option often, it
  3007.      is recommended to delete or truncate the log file once in a while to
  3008.      avoid unlimited growth.
  3009. =>   Note: you have to combine this option with option 'log'.
  3010.  
  3011.      expertlog (el)
  3012.      If you enable this option TbScan will not specify the descriptions of
  3013.      the heuristic flags in the log file. The heuristic flag descriptions are
  3014.      listed in appendix B.
  3015.  
  3016.      logname =<filename> (ln)
  3017.      With option logname you can specify the name of the log file to be used.
  3018.      TbScan will create the file in the current directory unless you specify
  3019.      a path and filename after selecting this option. If the log file already
  3020.      exists, it will be overwritten. If you want to print the results, you
  3021.      can specify a printer device name rather than a filename (logname=lpt1).
  3022. =>   Note: you have to combine this option with option 'log'.
  3023.  
  3024.      loglevel =<0..4> (ll)
  3025.      These levels determine what kind of file information will be stored in
  3026.      the log file. The default log level is 1. You may select one of five log
  3027.      levels:
  3028.  
  3029.      0    Log only infected files. If there are no infected files do not
  3030.           create or change the log file.
  3031.  
  3032.      1    Log summary too. Put a summary and timestamp in the log file. Put
  3033.           only infected files in the log file.
  3034.  
  3035.      2    Log suspected too. Same as loglevel=1, but now also 'suspected'
  3036.           files are logged. Suspected files are files that would trigger the
  3037.           heuristic alarm if option 'heuristic' had been specified.
  3038.  
  3039.      3    Log all warnings too. Same as loglevel=2, but all files that have a
  3040.           warning character printed behind the filename will be logged too.
  3041.  
  3042.      4    Log clean files too. All files being processed will be put into the
  3043.           log file.
  3044.  
  3045. =>   Note: you have to combine this option with option 'log'.
  3046.  
  3047.                                      III - 16
  3048.  
  3049.  
  3050. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3051.  
  3052.  
  3053.      wait =<0..255> (wa)
  3054.      This option can be used to delay TbScan, which may be handy if you want
  3055.      to scan a very busy network and you don't want to occupy the network to
  3056.      havily. You have to specify the amount of timer ticks you want to insert
  3057.      between every two files scanned.
  3058.  
  3059.      rename [=<text-mask>] (rn)
  3060.      If TbScan detects a file virus it prompts the user to delete or rename
  3061.      the infected file, or to continue without action. If you select the
  3062.      'rename' option, TbScan will rename the infected file automatically,
  3063.      without prompting the user first. By default, the first character of the
  3064.      file extension will be replced by the character 'V'. An .EXE file will
  3065.      be renamed to .VXE, and a .COM file to .VOM. This prevents the infected
  3066.      programs from being executed, spreading the infection. At the same time
  3067.      they can be kept for later examination and repair.
  3068.  
  3069.      You may also add a parameter to this option specifying the target
  3070.      extension. This parameter should always contain 3 characters; question
  3071.      marks are allowed. The default target extension is 'V??'.
  3072.  
  3073.      exec =.<ext-mask> (ee)
  3074.      With this option you can add filename extensions which indicate that a
  3075.      file is executable. If you want to use this option, you probably want to
  3076.      put it in the configuration file. Consult the explanation of the similar
  3077.      menu option for more details.
  3078.  
  3079.  
  3080.      Examples:
  3081.           TbScan c:\ noboot 
  3082.  
  3083.      Process all executable files in the root directory and its subdirecto-
  3084.      ries. Skip the bootsector scan.
  3085.  
  3086.           TbScan \*.* 
  3087.  
  3088.      Process all files in the root directory. Don't process subdirectories.
  3089.  
  3090.           TbScan @Local.Scn /nomem
  3091.  
  3092.      Process all paths specified in the file Local.Scn and skip memory
  3093.      scanning.
  3094.  
  3095.           TbScan c:\ log logname=c:\test.log loglevel=2
  3096.  
  3097.      All executable files on drive C: will be checked. A LOG file with the
  3098.      name c:\test.log will be created. The log file will contain all infected
  3099.      and suspected files.
  3100.  
  3101.           TbScan \ log logname=lpt1
  3102.  
  3103.      TbScan will scan the root directory and its subdirectories. The results
  3104.      are redirected to the printer rather than to a log file.
  3105.  
  3106.                                      III - 17
  3107.  
  3108.  
  3109. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3110.  
  3111.  
  3112.  
  3113. 1.4. The scanning process
  3114.  
  3115.      Choose the 'Start scanning' option in the TbScan menu or start the
  3116.      TbScan program from the DOS command line. TbScan will start scanning
  3117.      right away.
  3118.  
  3119.      +-----------------------------------------------------------------+
  3120.      |Thunderbyte virus detector v6.31 - (C) 1989-95, Thunderbyte B.V. |
  3121.      |                                                                 |
  3122.      | TBAV is upgraded every two months. Free hotline support is      |
  3123.      | provided for all registered users via telephone, fax and        |
  3124.      | electronic bulletin board. Read the comprehensive documentation |
  3125.      | files for detailed info. BBS: +31- 59- 182 011                  |
  3126.      |                                                                 |
  3127.      | C:\DOS\                                                         |
  3128.      | ** Unregistered evaluation version. Don't forget to register! **|
  3129.      |                                                                 |
  3130.      | ANSI.SYS      scanning..>        OK    signatures:        986   |
  3131.      | COUNTRY.SYS   skipping..>        OK                             |
  3132.      | DISKCOPY.COM  tracing...>        OK    file system:       OWN   |
  3133.      | DISPLAY.SYS   scanning..>        OK                             |
  3134.      | DRIVER.SYS    scanning..>        OK    directories:        01   |
  3135.      | EGA.CPI       skipping..>        OK    total files:        17   |
  3136.      | FASTOPEN.EXE  looking...>        OK    executables:        12   |
  3137.      | FDISK.EXE     looking...>        OK    CRC verified:       10   |
  3138.      | FORMAT.COM    tracing...>   E    OK    changed files:      00   |
  3139.      | GRAFTABL.COM  tracing...>        OK    infected items:     00   |
  3140.      | GRAPHICS.COM  tracing...>        OK                             |
  3141.      | GRAPHICS.PRO  skipping..>        OK    elapsed time:    00:05   |
  3142.      |                                        Kb /second:        57    |
  3143.      |                                                                 |
  3144.      +-----------------------------------------------------------------+
  3145.  
  3146.      TbScan divides the screen into three windows: an information window, a
  3147.      scanning window and a status window. The information window will initi-
  3148.      ally display the vendor information only. 
  3149.  
  3150.  
  3151.      While Scanning
  3152.  
  3153.      If TbScan detects infected files the names of the file and the virus
  3154.      will be displayed in the upper window. The lower left window displays
  3155.      the names of the files being processed, the algorithm in use, info and
  3156.      heuristic flags, and finally an OK statement or the name of the virus
  3157.      detected.
  3158.  
  3159.  
  3160.  
  3161.  
  3162.  
  3163.  
  3164.  
  3165.                                      III - 18
  3166.  
  3167.  
  3168. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3169.  
  3170.  
  3171.      Example: NLSFUNC.EXE     checking..>    FU          OK
  3172.                  |              |            |           |
  3173.                  |              |            |           result of scan
  3174.                  |              |            heuristic flags
  3175.                  |              algorithm being used to process file
  3176.                  name of file in process
  3177.  
  3178.  
  3179.      You will see comments following each file name: 'looking', 'checking',
  3180.      'tracing', 'scanning' or 'skipping'. These refer to the various algo-
  3181.      rithms being used to scan files.
  3182.  
  3183.      Other comments that TbScan can display here are the heuristic flags.
  3184.      Consult the 'Heuristic flags' chapter (1.3) for more information on
  3185.      these warning characters.
  3186.  
  3187.      The lower right window is the status window. It displays the number of
  3188.      files and directories encountered, the amount of viruses found. It also
  3189.      displays which file system is being used: either "DOS" or "OWN". The
  3190.      latter means that TbScan is able to bypass DOS. If this is the case,
  3191.      TbScan reads all files directly from disk for extra security and speed.
  3192.  
  3193.      The scanning process can be aborted by pressing Ctrl-Break.
  3194.  
  3195.  
  3196.      Detecting Viruses
  3197.  
  3198.      As soon as an infected program is found, TbScan will display the name of
  3199.      the virus. If you did not specify one of the  options 'batch', 'rename'
  3200.      or 'delete', TbScan will prompt you to specify the appropriate action.
  3201.      If you choose to rename the file, the first character of the file
  3202.      extension will be replaced by the character 'V'. This prevents the file
  3203.      from being executed by accident before it has been investigated more
  3204.      thoroughly. 
  3205.  
  3206.  
  3207.      If an infected file is detected, TbScan will display a message:
  3208.  
  3209.           Infected by [name of virus] virus.
  3210.           The file is infected by the virus mentioned.
  3211.  
  3212.           Is Joke named [name of Joke]  
  3213.           There are some programs which simulate that the system is infected
  3214.           by a virus. A joke is completely harmless.
  3215.  
  3216.           Is Trojan named [name of Trojan]
  3217.           The file is a Trojan Horse.Do not execute the program but delete
  3218.           it.
  3219.  
  3220.           Damaged by [name of virus]
  3221.           A damaged file contains - unlike an infected file - not the virus
  3222.           itself, but has been damaged by the virus.
  3223.  
  3224.                                      III - 19
  3225.  
  3226.  
  3227. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3228.  
  3229.  
  3230.           Dropper of [name of virus]
  3231.           A dropper is a program that has not been infected itself, but which
  3232.           does contain a bootsector virus and is able to install it in your
  3233.           bootsector.
  3234.  
  3235.           Overwritten by [name of virus]
  3236.           Some viruses overwrite files. An overwritten file contains - unlike
  3237.           an infected file - not the virus itself, but has been overwritten
  3238.           with garbage.
  3239.  
  3240.      It is also possible that TbScan encounters a file that seems to be
  3241.      infected by a virus, although a signature could not be found. In this
  3242.      case TbScan displays the prefix 'Probably' before the message. 
  3243.  
  3244.  
  3245.      Program Validation
  3246.  
  3247.      If TbScan finds a file to be very suspicious and pops up with the virus
  3248.      alert window, you can avoid future false alarms by pressing 'V' (Valida-
  3249.      te program). Note that this only works if there is an Anti-Vir.Dat
  3250.      record of the file available. Once a program is validated it will no
  3251.      longer be subject to heuristic analysis, unless the program changes and
  3252.      does not match the Anti-Vir.Dat record anymore. This will be the case if
  3253.      such a file gets infected afterwards, so TbScan will still report
  3254.      infections on these files.
  3255.  
  3256. =>   Note that a validated program is still subject to the conventional
  3257.      signature scanning.
  3258.  
  3259.  
  3260.      Heuristic Scanning
  3261.  
  3262.      If you have specified the option 'heuristic' it is likely that TbScan
  3263.      will find some files which look like a virus, and in this case TbScan
  3264.      uses the prefix 'Might be' to inform you about it. So, if TbScan dis-
  3265.      plays: 
  3266.  
  3267.           Probably infected by an unknown virus (level 1)
  3268.      or:
  3269.           Might be infected by an unknown virus (level 2) 
  3270.  
  3271.      it does not necessarily mean that the file is infected. There are a lot
  3272.      of files that look like a virus but are not.
  3273.  
  3274. =>   The heuristic levels are explained in section IV (page 9).
  3275.  
  3276.  
  3277.      False Positives
  3278.  
  3279. =>   Important!
  3280.      False alarms are part of the nature of heuristic scanning. In default
  3281.      mode it is very unlikely that TbScan issues a false alarm. However, if
  3282.  
  3283.                                      III - 20
  3284.  
  3285.  
  3286. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3287.  
  3288.  
  3289.      you have specified option 'heuristic' some false alarms might occur. How
  3290.      to deal with these false alarms? If TbScan thinks it has found a virus
  3291.      it tells you the reason for this suspicion. In most cases you will be
  3292.      able to evaluate these reasons when you consider the purpose of the
  3293.      suspected file.
  3294.  
  3295. =>   Note that viruses infect other programs. It is highly unlikely that you
  3296.      will find only a few infected files on a hard disk used frequently. You
  3297.      should ignore the result of a heuristic scan if only a few programs on
  3298.      your hard disk trigger it. But, if your system behaves in a 'strange'
  3299.      manner and many programs cause TbScan to issue an alarm with the same
  3300.      serious flags, your system could very well be infected by a (yet un-
  3301.      known) virus.
  3302.  
  3303.  
  3304.      Heuristic flags
  3305.  
  3306.      Heuristic flags consist of single characters that are printed behind the
  3307.      name of the file that has been processed. There are two kinds of flags:
  3308.      the informative ones are printed in lower-case characters; the more
  3309.      serious flags are printed in upper-case characters. 
  3310.  
  3311.      The lower-case flags are indicative of special characteristics of the
  3312.      file being processed, whereas the upper-case warnings may indicate a
  3313.      virus. If the 'loglevel' is 3 or above, the important warnings will not
  3314.      only appear as a warning character, but there will also be a description
  3315.      printed in the log file.
  3316.  
  3317.      How should you treat the flags? The less important lower-case flags can
  3318.      be considered to be for your information only.They provide you with file
  3319.      information you might find interesting. The more serious warning flags
  3320.      printed in upper-case MIGHT point towards a virus. It is quite normal
  3321.      that you have some files in your system which trigger an upper-case
  3322.      flag.
  3323.  
  3324.      The heuristic flag descriptions are listed in appendix B.
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.  
  3332.  
  3333.  
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.                                      III - 21
  3343.  
  3344.  
  3345. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3346.  
  3347.  
  3348. 2. TbScanX
  3349.  
  3350.  
  3351. 2.1. The Purpose of TbScanX
  3352.  
  3353.      TbScanX is the resident version of the TbScan program, checking files on
  3354.      the basis of a virus signature list. Suppose you have a virus scanner
  3355.      automatically executed from your autoexec.bat file. If no viruses are
  3356.      found, your system is supposed to be uninfected. But, to be sure that no
  3357.      virus will infect your system, you have to execute the scanner every
  3358.      time after copying a file to your harddisk, after downloading a file
  3359.      from a bulletin board system, or after unarchiving an archive such as a
  3360.      ZIP file. Be honest, do YOU actually invoke your scanner every time you
  3361.      introduce a new file into the system? If you don't, you take the risk
  3362.      that within a couple of hours all files are infected by a virus... 
  3363.  
  3364.      Once loaded, TbScanX will remain resident in memory, and will automati-
  3365.      cally scan all files you execute and all executable files you copy,
  3366.      create, download, modify, or unarchive. The same approach is used to
  3367.      protect against bootsector viruses: every time you put a diskette into a
  3368.      drive the bootsector will be scanned. If the disk is contaminated with a
  3369.      boot sector virus TbScanX will warn you in time!
  3370.  
  3371.      TbScanX is fully network compatible. It does not require to reload the
  3372.      scanner after logging on to the network. 
  3373.  
  3374.  
  3375. 2.2. How to use TbScanX
  3376.  
  3377.      Since TbScanX is memory resident, the program can be executed and
  3378.      configured from the command line or from within a batch file. It is
  3379.      important to load TbScanX as early as possible after the machine has
  3380.      booted. Therefore it is recommended to execute TbScanX from within the
  3381.      Config.Sys file.
  3382.  
  3383. =>   Note that TbScanX requires TbDriver to be loaded first!
  3384.  
  3385.  
  3386.      Loading TBScanX
  3387.  
  3388.      There are three possible ways to load TbScanX:
  3389.  
  3390.      1. From the DOS prompt or within the Autoexec.Bat file:
  3391.           <path>TbScanX
  3392.  
  3393.      2. From the Config.Sys as a TSR (Dos 4+):
  3394.           Install=<path>TbScanX.Exe 
  3395.  
  3396.      The "Install=" Config.Sys command is NOT available in DOS 3.xx.
  3397.  
  3398.      3. From the Config.Sys as a device driver:
  3399.           Device=<path>TbScanX.Exe
  3400.  
  3401.                                      III - 22
  3402.  
  3403.  
  3404. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3405.  
  3406.  
  3407.      Unlike other anti-virus products, the ThunderBYTE anti-virus utlities
  3408.      can be loaded before the network is started without loosing the protec-
  3409.      tion afterwards.
  3410.  
  3411.  
  3412.      Highload TBScanX
  3413.  
  3414.      In addition to the three invocation possibilities users of DOS 5 and
  3415.      higher versions can "highload" TbScanX in UMB (upper memory block) if it
  3416.      is available:
  3417.  
  3418.           LoadHigh <path>TbScanX.Exe
  3419.  
  3420.      Within the Config.Sys file TbScanX can also be loaded high:
  3421.  
  3422.           DeviceHigh=<path>TbScanX.Exe
  3423.  
  3424.  
  3425.      TbScanX and MS-Windows
  3426.  
  3427.      Windows users should load TbScanX BEFORE starting MS-Windows. If you do
  3428.      that there is only one copy of TbScanX in memory, but every DOS-window
  3429.      will nevertheless have a fully functional TbScanX in it. TbScanX detects
  3430.      if Windows is starting up, and will switch itself in multitasking mode
  3431.      if necessary. You can even disable TbScanX in one window without affec-
  3432.      ting the functionality in another window.
  3433.  
  3434.  
  3435. 2.3. Command line options
  3436.  
  3437.      TbScanx can be configured from the command line. The upper four options
  3438.      are always available, the other options are only available if TbScanX is
  3439.      not already resident in memory.
  3440.  
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.  
  3448.  
  3449.  
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458.  
  3459.  
  3460.                                      III - 23
  3461.  
  3462.  
  3463. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3464.  
  3465.  
  3466.      option  short  explanation
  3467.      --------------------------------------------------
  3468.  
  3469.      help      ?    display this helpscreen
  3470.      off       d    disable scanning
  3471.      on        e    enable scanning
  3472.      remove    r    remove TbScanX from memory
  3473.  
  3474.      noexec    n    never scan at execute
  3475.      allexec   a    always scan at execute
  3476.      noboot    b    do not scan bootsectors
  3477.      wild      w    only viruses which appear in the wild
  3478.      ems       me   use expanded memory (EMS)
  3479.      xms       mx   use extended memory (XMS)
  3480.      secure    s    deny access without asking
  3481.      lock      l    lock PC when virus detected
  3482.      api       i    load Application Program Interface
  3483.      compat    c    increased compatibility
  3484.  
  3485.  
  3486.      help (?)
  3487.      If you specify this option TbScanX will show you the commandline options
  3488.      as shown above. Once TbScanX has been loaded the help option will not
  3489.      show all options anymore.
  3490.  
  3491.      off (d)
  3492.      If you specify this option TbScanX will be disabled, but it will remain
  3493.      in memory.
  3494.  
  3495.      on (e)
  3496.      If you use this option TbScanX will be activated again after you dis-
  3497.      abled it with the 'off' option.
  3498.  
  3499.      remove (r)
  3500.      This option can be used to remove the resident part of TbScanX from your
  3501.      memory. All memory used by TbScanX will be released. Unfortunately,
  3502.      removing a TSR (like TbScanX) is not always possible. TbScanX checks
  3503.      whether it is safe to remove the resident part from memory, if it is not
  3504.      safe it just disables TbScanX. A TSR can not be removed if another TSR
  3505.      is started after it. If this happens with TbScanX it will completely
  3506.      disable itself. 
  3507.  
  3508.      compat (c)
  3509.      In most systems TbScanX performs troublefree. It is possible that
  3510.      TbScanX conflicts with other EMS or XMS using resident software. In this
  3511.      case the system will hang. Option 'compat' might solve this problem, but
  3512.      due to extensive memory swapping the performance of TbScanX will slow
  3513.      down.
  3514.  
  3515.  
  3516.  
  3517.  
  3518.  
  3519.                                      III - 24
  3520.  
  3521.  
  3522. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3523.  
  3524.  
  3525.      noexec (n)
  3526.      TbScanX normally scans files located on removable media just before they
  3527.      are executed. You can use this option to disable this feature complete-
  3528.      ly.
  3529.  
  3530.      allexec (a)
  3531.      TbScanX normally scans files to be executed only if they reside on
  3532.      removable media. Files on the harddisk are trusted, because these files
  3533.      must have been copied or downloaded before. And by that time TbScanX has
  3534.      already scanned them automatically. However if you want every file to be
  3535.      scanned before executing, no matter whether on harddisk or removable
  3536.      media, you should use this option.
  3537.  
  3538.      noboot (b)
  3539.      TbScanX monitors the disk system: every time the bootsector is being
  3540.      read, TbScanX automatically scans the disk for bootsector viruses. If
  3541.      you change a disk, the first thing DOS has to do is read the bootsector,
  3542.      otherwise it does not know what kind of disk is in the drive. And as
  3543.      soon as DOS reads the bootsector, TbScanX checks it for viruses. If you
  3544.      don't like this feature, or if it causes problems, you can switch it off
  3545.      using the 'noboot' option. This option will also save some memory
  3546.      because the bootsector signatures will not be loaded.
  3547.  
  3548.      wild (w)
  3549.      There are many viruses which do not appear 'in the wild'. They only run
  3550.      on ancient machines or DOS versions, or they are so buggy that they can
  3551.      only survive in 'virus-laboratory' environments. If you specify option
  3552.      'wild', TbScanX will only search for the viruses which appear in the
  3553.      wild, saving memory and time.
  3554.  
  3555.      secure (s)
  3556.      TbScanX normally asks the user to continue or to cancel when it detects
  3557.      a virus. In some business environments however this choice should not be
  3558.      made by employees. By using option 'secure' it is no longer possible to
  3559.      allow suspicious operations. Option 'secure' also disables option 'off'
  3560.      and 'remove'.
  3561.  
  3562.      lock (l) 
  3563.      System operators can use this option to instruct TbScanX to lock the
  3564.      system once a virus is detected.
  3565.  
  3566.      api (i)
  3567.      This option is intended for avanced users only. It enables the Applica-
  3568.      tion Program Interface of TbScanX which is needed if you want to call
  3569.      TbScanX from within your application. Consult the file Addendum.Doc for
  3570.      detailed programming information.
  3571.  
  3572.      ems (me)
  3573.      If you specify this option TbScanX will use expanded memory (like
  3574.      provided by LIM/EMS expansion boards or 80386 memory managers) to store
  3575.      the signatures and part of its program code. Since conventional memory
  3576.  
  3577.  
  3578.                                      III - 25
  3579.  
  3580.  
  3581. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3582.  
  3583.  
  3584.      is more valuable to your programs than expanded memory, the use of EMS
  3585.      memory is recommended.
  3586.  
  3587.      xms (mx)
  3588.      If you specify this option TbScanX will use extended memory to store the
  3589.      signatures and part of its program code. An XMS driver (like HIMEM.SYS)
  3590.      needs to be installed to be able to use this option. XMS memory is not
  3591.      directly accessable from within DOS, so every time TbScanX has to scan
  3592.      data it has to copy the signatures to conventional memory. 
  3593.  
  3594.      To be able to save the original memory contents TbScanX needs a double
  3595.      amount of XMS memory. Swapping to XMS is slower than swapping to EMS
  3596.      memory, so if you have EMS memory available swapping to EMS is recommen-
  3597.      ded. Swapping to XMS may conflict with some other software, so if you
  3598.      experience problems try using TbScanX without the XMS option. 
  3599.  
  3600.      Example
  3601.           Device=C:\utils\TbScanX.Exe xms noboot
  3602.  
  3603.  
  3604. 2.4. While scanning
  3605.  
  3606.      Whenever a program tries to write to an executable file (files with the
  3607.      extensions .COM and .EXE), you will briefly see the text "*Scanning*" in
  3608.      the upper left corner of your screen. Since TbScanX takes very little
  3609.      time to scan the file, the message will only appear very briefly. The
  3610.      text "*Scanning*" will also appear if you execute a program directly
  3611.      from a diskette, and if DOS accesses the bootsector of a diskette drive.
  3612.  
  3613.  
  3614.      Detecting Viruses
  3615.  
  3616.      If TbScanX detects a suspicious signature that is about to be written
  3617.      into a file, a window will appear with the message:
  3618.  
  3619.           WARNING, <filename> contains <virus name>!
  3620.           Abort? (Y/n)
  3621.  
  3622.      Press "N" to continue, press any other key to abort.
  3623.  
  3624.      If TbScanX detects a suspicious signature in a boot sector, it will
  3625.      display the message:
  3626.  
  3627.           WARNING, Disk in <drive> contains <virus name>!
  3628.           Press a key...
  3629.  
  3630.      Although a virus seems to be on the bootsector of the specified drive,
  3631.      the virus cannot do anything since it has not been executed yet. Howe-
  3632.      ver, if you reboot the machine with the contaminated diskette in the
  3633.      drive, the virus will copy itself to your harddisk.
  3634.  
  3635.  
  3636.  
  3637.                                      III - 26
  3638.  
  3639.  
  3640. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3641.  
  3642.  
  3643.      To display the name of the virus, TbScanX needs the signature file
  3644.      again. It will automatically use the signature file that was used when
  3645.      you invoked the program. If the signature file is missing (because you
  3646.      deleted it, or because you removed the  floppy containing it), or no
  3647.      file handles are left, TbScanX will still detect viruses, but it is no
  3648.      longer able to display the name of the virus. It will display [Name
  3649.      unknown] instead.
  3650.  
  3651.  
  3652.  
  3653.  
  3654.  
  3655.  
  3656.  
  3657.  
  3658.  
  3659.  
  3660.  
  3661.  
  3662.  
  3663.  
  3664.  
  3665.  
  3666.  
  3667.  
  3668.  
  3669.  
  3670.  
  3671.  
  3672.  
  3673.  
  3674.  
  3675.  
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683.  
  3684.  
  3685.  
  3686.  
  3687.  
  3688.  
  3689.  
  3690.  
  3691.  
  3692.  
  3693.  
  3694.  
  3695.  
  3696.                                      III - 27
  3697.  
  3698.  
  3699. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3700.  
  3701.  
  3702. 3. TbCheck
  3703.  
  3704.  
  3705. 3.1. The Purpose of TbCheck
  3706.  
  3707.      TbCheck is a memory-resident integrity checker, coming into action
  3708.      whenever a file is about to be executed. It uses the Anti-Vir.Dat
  3709.      records generated by TbSetup to detect file changes, often the first
  3710.      sign of a virus infection. These records contain information, such as
  3711.      file sizes and checksums, of every executable file in a directory. By
  3712.      comparing this information with the actual file status it is possible to
  3713.      detect any changes, including infections caused by viruses - automati-
  3714.      cally.
  3715.  
  3716.      Suppose you have a conventional integrity checker automatically invoked
  3717.      in your autoexec.bat file. If no files are changed, your system is
  3718.      supposed to be uninfected. But, to be sure that no virus can infect your
  3719.      system, you have to execute the checker frequently.
  3720.  
  3721.      Once loaded TbCheck will remain resident in memory, and will automa-
  3722.      tically check all programs you try to execute.
  3723.  
  3724.      TbCheck is fully network compatible. It does not require you to reload
  3725.      the checker after logged on to the network.
  3726.  
  3727.  
  3728. 3.2. How to use TbCheck
  3729.  
  3730.      Since TbCheck is a memory resident program, it can be executed and
  3731.      configured from the command line or from within a batch file. TbCheck
  3732.      should however be started automatically and as soon as the computer
  3733.      boots up, preferably during the execution of Config.Sys or Autoexec.Bat
  3734.      file. 
  3735.  
  3736. =>   Be sure TbDriver has already been loaded - TbCheck wil refuse to start
  3737.      up without it.
  3738.  
  3739.  
  3740.      Loading TbCheck
  3741.  
  3742.      There are three possible ways to start TbCheck:
  3743.        
  3744.      1. From the DOS prompt or within the Autoexec.Bat file:
  3745.           <path>TbCheck
  3746.  
  3747.      2. From the Config.Sys as a TSR (Dos 4+):
  3748.           Install=<path>TbCheck.Exe
  3749.  
  3750.      The "Install=" Config.Sys command is NOT available in DOS 3.xx.
  3751.  
  3752.      3. To invoke TbCheck from the Config.Sys as a device driver:
  3753.           Device=<path>TbCheck.Exe
  3754.  
  3755.                                      III - 28
  3756.  
  3757.  
  3758. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3759.  
  3760.  
  3761.      TbCheck should always work correctly after being started from within the
  3762.      Autoexec.Bat. Unlike other anti-virus products, the Thunderbyte anti-
  3763.      virus utilities can be loaded before the network is started without
  3764.      losing the protection after the network is started.
  3765.  
  3766.  
  3767.      Highload  TbCheck
  3768.  
  3769.      In addition to the three invocation possibilities DOS 5 users can
  3770.      "highload" TbCheck in a UMB (upper memory block) if it is available:
  3771.  
  3772.           LoadHigh <path>TbCheck.Exe
  3773.  
  3774.      Within the Config.Sys file TbCheck can also be loaded high:
  3775.  
  3776.           DeviceHigh=<path>TbCheck.Exe
  3777.  
  3778.  
  3779.      TbCheck and MS-Windows
  3780.  
  3781.      Windows users should load TbCheck BEFORE starting Windows. If you do
  3782.      that, there is only one copy of TbCheck in memory, but every DOS-window
  3783.      will nevertheless have a fully functional TbCheck in it.  TbCheck
  3784.      detects if Windows is starting up, and will switch itself into multitas-
  3785.      king mode if necessary. You can even disable TbCheck in one window
  3786.      without affecting the functionality in another window.
  3787.  
  3788.  
  3789. 3.3. Command line options
  3790.  
  3791.      It is possible to specify options on the command line. The upper four
  3792.      options are always available, the other options are available only if
  3793.      TbCheck is not memory resident.
  3794.  
  3795.  
  3796.      option  parameter short explanation
  3797.      ------  --------- ----- ------------------
  3798.  
  3799.      help               ?    display this helpscreen
  3800.      off                d    disable checking
  3801.      on                 e    enable checking
  3802.      remove             r    remove TbCheck from memory
  3803.  
  3804.      noavok [=<drives>] o    do not warn for missing AV record
  3805.      fullcrc            f    calculate full CRC (slow!)
  3806.      secure             s    do not execute unauthorized files
  3807.  
  3808.  
  3809.      help (?)
  3810.      If you specify this option TbCheck displays the above options list.
  3811.  
  3812.      off (d)
  3813.  
  3814.                                      III - 29
  3815.  
  3816.  
  3817. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3818.  
  3819.  
  3820.      Disables TbCheck, but it will remain in memory and can be reactivated.
  3821.  
  3822.      on (e)
  3823.      TbCheck will be reactivated after having been disabled with the 'off'
  3824.      option.
  3825.  
  3826.      remove (r)
  3827.      This option disables TbCheck and will try to remove the resident part
  3828.      from memory. Unfortunately, this can only work if TbCheck was loaded
  3829.      last. An attempt to remove a TSR after another TSR has been started will
  3830.      simply leave a useless gap in memory and could disrupt the interrupt
  3831.      chain. TbCheck will try to find out whether it is safe to remove its
  3832.      resident code; if not, it will simply disable itself. 
  3833.  
  3834.      noavok (o)
  3835.      TbCheck will look for checksum information on the file you want to be
  3836.      checked in the Anti-Vir.Dat file. TbCheck will display a message if no
  3837.      checksum information is found or if the specific checksum is incorrect.
  3838.      This makes sure that you will receive a warning whenever a malicious
  3839.      program deletes the Anti-Vir.Dat file. 
  3840.  
  3841.      Although it is recommended to maintain Anti-Vir.Dat files on all drives,
  3842.      this may not always be practical with floppy disks, RAM disks or CD-ROM
  3843.      disks. Option 'noavok' tells TbCheck not to look for an Anti-Vir.Dat on
  3844.      specific drives. For instance, if you don't want to be alerted about the
  3845.      absence of an Anti-Vir.Dat record on floppy disks (A: and B:) or on your
  3846.      RAM disk (E:) you should specify:
  3847.  
  3848.           "NoAvOk=ABE"
  3849.  
  3850.      If you don't want a message if an Anti-Vir.Dat record is missing on
  3851.      network drives, you should specify an asterisk (*) instead of a drive
  3852.      letter.
  3853.  
  3854.      If you don't specify a drive to the 'noavok' option, TbCheck will never
  3855.      issue a warning if an Anti-Vir record is missing on any drive. 
  3856.  
  3857. =>   Note that this presents a security hole for viruses: by deleting the
  3858.      Anti-Vir.Dat file you will not be able to detect file changes caused by
  3859.      a viral infection.
  3860.  
  3861. =>   Please note that the 'noavok' option does not do anything to prevent the
  3862.      detection of infected programs if the Anti-Vir record is available. If a
  3863.      program has been changed and the Anti-Vir record is available, you will
  3864.      still get an alarm regardless of how option 'noavok' was implemented.
  3865.  
  3866.      fullcrc (f)
  3867.      By default, TbCheck only verifies that part of the file near the pro-
  3868.      gram's entry point. If a virus infects the file, this area is guaranteed
  3869.      to change, so this is perfectly adequate to detect all infections. Other
  3870.      file changes, notably configuration variations, will not trigger the
  3871.      alarm. If, however, you should ever desire a full check that detects any
  3872.  
  3873.                                      III - 30
  3874.  
  3875.  
  3876. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3877.  
  3878.  
  3879.      file changes, this option will take care of it. Note that this slows
  3880.      down the system considerably - this option is not recommended for normal
  3881.      (anti-virus) usage! 
  3882.  
  3883.      secure (s)
  3884.      TbCheck normally asks whether the user wants to continue or cancel when
  3885.      a file has been changed or when there is no checksum information availa-
  3886.      ble. In a business environment it may be unwise to leave such decisions
  3887.      to employees. Option 'secure' makes it impossible to execute new or
  3888.      unknown programs, or programs that have been changed. Option 'secure'
  3889.      also disables option 'off' and 'remove'.
  3890.  
  3891.  
  3892. 3.4. While checking
  3893.  
  3894.      Whenever a program wants to execute, TbCheck steps in to see if it
  3895.      really has the authority to do so. During that time it will display
  3896.      '*Checking*' in the screen's upper left hand corner. TbCheck operates at
  3897.      lightning speed, therefore the message will appear only momentarily. 
  3898.  
  3899.      Since TbCheck does not take much time to check the file, you will see
  3900.      the message only in a short notice of time.
  3901.  
  3902.  
  3903.      Detecting File Changes
  3904.  
  3905.      TbCheck quickly checks a program when that program is loaded. If TbCheck
  3906.      detects that a file has been changed, a pop-up window will appear to
  3907.      inform you. You can either choose to continue, or to abort the program
  3908.      invocation.
  3909.  
  3910.      If there is no information (Anti-Vir.Dat) about the program, TbCheck
  3911.      will inform you about this too. You can either choose to continue
  3912.      without checking, or to abort the program invocation. 
  3913.  
  3914. =>   Note that you can prevent users from executing non authorized software
  3915.      by combining the TbCheck command with the 'secure' option.
  3916.  
  3917.  
  3918. 3.5. Testing TbCheck
  3919.  
  3920.      Many people understandably wish to test the product they are using. In
  3921.      contrast with, for instance, a word processor, it is very difficult to
  3922.      test a smart integrity checker like TbCheck. You cannot change a random
  3923.      25 bytes of an executable file just to find out whether or not TbCheck
  3924.      will detect the file change. On the contrary, it is very likely that
  3925.      TbCheck will NOT detect it because the program only checks the entry-
  3926.      area of the file whereas the changed bytes might be located on another
  3927.      location within the file.
  3928.  
  3929.  
  3930.  
  3931.  
  3932.                                      III - 31
  3933.  
  3934.  
  3935. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3936.  
  3937.  
  3938. 4. TbClean
  3939.  
  3940.  
  3941. 4.1. The Purpose of TbClean
  3942.  
  3943.      TbClean isolates viral code in an infected program and removes it. From
  3944.      then on it will be safe to use the program again, as the risk of other
  3945.      files being infected or damaged by it will have been securely elimina-
  3946.      ted.
  3947.  
  3948.  
  3949.      Generic Cleaners
  3950.  
  3951.      TbClean works completely different compared to 'conventional cleaners.
  3952.      First of all, it does not recognize any virus. Its disinfection scheme
  3953.      is completely different and it works with almost any virus. Actually,
  3954.      the TbClean program contains two cleaners: a 'repair' cleaner, and a
  3955.      'heuristic' cleaner. The repair cleaner needs an Anti-Vir.Dat file that
  3956.      is generated by the TbSetup program before the infection occurs. In this
  3957.      Anti-Vir.Dat file essential information is stored, like the original
  3958.      file size, the bytes at the beginning of the program, a cryptographic
  3959.      checksum to verify the results, etc. This information enables TbClean to
  3960.      disinfect almost every file, regardless of the virus it has been infec-
  3961.      ted with, known or unknown. 
  3962.  
  3963.  
  3964.      No information available?
  3965.  
  3966.      In the heuristic cleaning mode TbClean does not need any information
  3967.      about viruses either, but it has the added advantage that it does not
  3968.      even care about the original, uninfected state of a program. This
  3969.      cleaning mode is very effective if your system is infected with an
  3970.      unknown virus and yo neglected to let TbSetup generate the Anti-Vir.Dat
  3971.      files in time.
  3972.  
  3973.      In the heuristic mode, TbClean loads the infected file and starts
  3974.      emulating the program code to find out which part of the file belongs to
  3975.      the original program and which to the virus. The result is successful if
  3976.      the functionality of the original program is restored, and the functio-
  3977.      nality of the virus has been reduced to zero. 
  3978.  
  3979. =>   Note that this does not imply that the cleaned file is 100% equal to the
  3980.      original.
  3981.  
  3982.      When TbClean uses heuristic cleaning to disinfect the program, the file
  3983.      will most likely not be exactly the same as in its original state. This
  3984.      is not an indication of failure of TbClean, nor does it mean the file is
  3985.      still infected in some way. First of all, it is normal that the heuris-
  3986.      tically cleaned file is still larger than the original. This is normal
  3987.      because TbClean tries to be on the safe side and it will avoid removing
  3988.      too much. The bytes left at the end of the file are 'dead' code, the
  3989.      instructions will never be executed again since the 'jump' at the
  3990.  
  3991.                                      III - 32
  3992.  
  3993.  
  3994. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  3995.  
  3996.  
  3997.      beginning of the program has been removed. If the cleaned file is an EXE
  3998.      type file, it is likely that some bytes in front of the program - the
  3999.      exeheader - are different. There are many suitable solutions to recon-
  4000.      struct the exeheader, and TbClean can of course never know the original
  4001.      state of the program. The functionality of the cleaned file will never-
  4002.      theless be the same! 
  4003.  
  4004. =>   Note that this only applies to heuristic cleaning: if there is a suit-
  4005.      able Anti-Vir.Dat record available, the cleaned program will normally be
  4006.      exactly the same as the original clean file.
  4007.  
  4008.      It is possible that the infected file is infected with multiple viruses,
  4009.      or multiple instances of the same virus! Some viruses keep on infecting
  4010.      files, and in such case the infected files will keep growing. If TbClean
  4011.      used its heuristic cleaning mode, it is very likely that TbClean removed
  4012.      only one instance of the virus. In this case, it is necessary to repeat
  4013.      the cleaning process until TbClean reports that it can not remove
  4014.      anything anymore.
  4015.  
  4016.  
  4017. 4.2. How to use TbClean
  4018.  
  4019.      After tracking one or more viruses, all you should do is select the
  4020.      'Start cleaning' option in the TbClean menu. After specifying the
  4021.      relevant filename, TbClean will come into action. Beforehand, TbClean
  4022.      allows some additional parameters. These parameters are discussed below.
  4023.  
  4024.  
  4025.      The TbClean menu
  4026.  
  4027.      You can execute TbClean in combination with some useful parameters,
  4028.      which are listed in the TbClean menu. You can activate these parameters
  4029.      by toggling the selection bar to the desired option and type <ENTER>. A
  4030.      checkmark indicates that the specific parameter is ON.
  4031.  
  4032.  
  4033.      +----Main menu-----+
  4034.      |  Confi+-----TbClean menu-----+
  4035.      |  TbSet|  Start cleaning      |
  4036.      |  TbSca|  List-file name      |
  4037.      |  TbUti|  Use TBAV.INI file   |
  4038.      |  TbCLe|  Prompt for pause    |
  4039.      |  TBAV |v Use Anti-Vir.Dat    |
  4040.      |  Docum|v Use Heuristics      |
  4041.      |  Regis|v Expanded memory     |
  4042.      |  Quit |  Show program loops  |
  4043.      |  eXit |  Make list file      |
  4044.      +-------+----------------------+
  4045.  
  4046.  
  4047.  
  4048.  
  4049.  
  4050.                                      III - 33
  4051.  
  4052.  
  4053. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4054.  
  4055.  
  4056.      List-file name 
  4057.  
  4058.      By selecting this option you may specify a filename to be used as list-
  4059.      file (see also option 'make list-file'). 
  4060.  
  4061.  
  4062.      Use TBAV.INI file
  4063.  
  4064.      By enabling this option, the TbClean configuration values, saved in the
  4065.      TBAV.INI file, will also be valid when loading TbClean from the command
  4066.      line. Be careful, since options specified in the TBAV.INI file can not
  4067.      be undone on the command line. See chapter I-2 ('Configuration').
  4068.  
  4069.  
  4070.      Prompt for pause 
  4071.  
  4072.      TbClean will stop disassembling information after each full screen to
  4073.      let you examine the results.
  4074.  
  4075.  
  4076.      Use Anti-Vir.Dat 
  4077.  
  4078.      If this option is deselected, TbClean will act as if there were no Anti-
  4079.      Vir.Dat records available and will therefore perform heuristic cleaning.
  4080.  
  4081.  
  4082.      Use Heuristics
  4083.  
  4084.      If this option is deselected, TbClean will not try to apply heuristic
  4085.      cleaning, even when there are no Anti-Vir.Dat records available.
  4086.  
  4087.  
  4088.      Show program loops
  4089.  
  4090.      By default TbClean keeps track of looping conditions to keep an iterati-
  4091.      on that would be emulated thousands of times from being listed on your
  4092.      screen. With this option TbClean 'works out' every loop. 
  4093.  
  4094. =>   Note that TbClean will perform at a drastically reduced speed. Do not
  4095.      combine this option with the 'list' option, because the list file might
  4096.      grow too big.
  4097.  
  4098.  
  4099.      Expanded memory
  4100.  
  4101.      If activated, TbClean will detect the presence of expanded memory and
  4102.      will use it in heuristic mode. You may disable EMS usage if it is too
  4103.      slow, or if your expanded memory manager is not very stable.
  4104.  
  4105.  
  4106.  
  4107.  
  4108.  
  4109.                                      III - 34
  4110.  
  4111.  
  4112. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4113.  
  4114.  
  4115.      Make list file 
  4116.  
  4117.      TbClean will generate an output file with a chronological disassembly of
  4118.      the virus being removed. 
  4119.  
  4120.  
  4121. 4.3. Command line options
  4122.  
  4123.      TbClean recognizes option short-keys and option words. The words are
  4124.      easier to memorize, and they will be used in this manual for convenien-
  4125.      ce.
  4126.  
  4127.  
  4128.      option     parameter        short explanation
  4129.      ---------------------------------------------------------------
  4130.      help                         he   help (-? = short help)
  4131.      pause                        pa   enable 'Pause' prompt
  4132.      mono                         mo   force monochrome
  4133.      noav                         na   do not use Anti-Vir.Dat record
  4134.      noheur                       nh   do not use heuristic cleaning
  4135.      noems                        ne   do not use expanded memory
  4136.      showloop                     sl   show every loop iteration
  4137.      list       [=<filename>]     li   create list file
  4138.  
  4139.  
  4140.      Below, all command line options are explained briefly.
  4141.  
  4142.      help (he)
  4143.      If you specify this option TbClean displays the contents of the TBCLE-
  4144.      AN.HLP file if it is available in the home directory of TbClean.  If you
  4145.      specify the '?' option you will get the summarized help info as listed
  4146.      above.
  4147.  
  4148.      pause (pa)
  4149.      TbClean will stop disassembling information after each full screen to
  4150.      let you examine the results.
  4151.  
  4152.      mono (mo)
  4153.      This option forces TbClean to refrain from using colors in the screen
  4154.      output. This might enhance the screen output on some LCD screens or
  4155.      color-emulating monochrome systems.
  4156.  
  4157.      noav (na)
  4158.      If this option is specified, TbClean will act as if there were no Anti-
  4159.      Vir.Dat records available and will therefore perform heuristic cleaning.
  4160.  
  4161.      noheur (nh)
  4162.      If this option is specified, TbClean will not try to apply heuristic
  4163.      cleaning, even when there are no Anti-Vir.Dat records available.
  4164.  
  4165.  
  4166.  
  4167.  
  4168.                                      III - 35
  4169.  
  4170.  
  4171. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4172.  
  4173.  
  4174.      noems (ne)
  4175.      If specified, TbClean will not detect the presence of expanded memory
  4176.      and will use it in heuristic mode. You may disable EMS usage if it is
  4177.      too slow, or if your expanded memory
  4178.      manager is not very stable.
  4179.  
  4180.      showloop (sl)
  4181.      By default TbClean keeps track of looping conditions to keep an iterati-
  4182.      on that would be emulated thousands of times from being listed on your
  4183.      screen. With this option TbClean 'works out' every loop. 
  4184.  
  4185. =>   Note that TbClean will perform at a drastically reduced speed. Do not
  4186.      combine this option with the 'list' option, because the list file might
  4187.      grow too big.
  4188.  
  4189.      list [=<filename>] (li)
  4190.      TbClean will generate an output file with a chronological disassembly of
  4191.      the virus being removed. 
  4192.  
  4193.      Examples
  4194.           TbClean VIRUS.EXE
  4195.  
  4196.      TbClean will make a backup with the name VIRUS.VIR and it will disinfect
  4197.      VIRUS.EXE
  4198.  
  4199.           TbClean VIRUS.EXE TEST.EXE
  4200.  
  4201.      TbClean will copy VIRUS.EXE to TEST.EXE and disinfect
  4202.      TEST.EXE
  4203.  
  4204.  
  4205. 4.4. The cleaning process
  4206.  
  4207.      Choose 'Start cleaning' in the TBAV menu. Now you specify the name of
  4208.      the file that has to be cleaned. Suppose you want an infected program
  4209.      file named 'virus.exe' to be cleaned:
  4210.  
  4211.      Enter name of program to clean. TbClean will create a backup first!
  4212.                C:\VIRUS\VIRUS.EXE 
  4213.  
  4214.      The ThunderBYTE utility cleans on a file-by-file approach: clean one
  4215.      file, verify the result, and proceed with the next file. This helps you
  4216.      to keep track of which file is clean, which file is damaged and should
  4217.      be restored from a backup, and which
  4218.      file is still infected.
  4219.  
  4220.      Enter name of cleaned file. Keep blank if infected program may be
  4221.      changed.
  4222.                C:\VIRUS\TEST.EXE
  4223.  
  4224.      By specifying a different name (eg. 'test.exe') you indicate that the
  4225.      cleaned file may not overwrite the original .exe file. In this example
  4226.  
  4227.                                      III - 36
  4228.  
  4229.  
  4230. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4231.  
  4232.  
  4233.      TbClean will copy VIRUS.EXE to TEST.EXE and disinfect TEST.EXE. Next,
  4234.      TbClean will start the cleaning process.  
  4235.  
  4236.      If you do not specify a backup filename, TbClean will create a backup
  4237.      with the '.vir' extension (eg. VIRUS.VIR) and it will disinfect the .exe
  4238.      file.
  4239.  
  4240.  
  4241.      +-----------------------------------------------------------------+
  4242.      |  Thunderbyte clean utility v6.31 (C) 1992-95 Thunderbyte B.V.   |
  4243.      +---------Infected state----------++---------Original state-------+
  4244.      | Entry point (CS:IP)   34BF:0012 || Entry point (CS:IP) 34BF:0012|
  4245.      | File length                     || File length         UNKNOWN! |
  4246.      | Cryptographic CRC     9F90F52A  || Cryptographic CRC   UNKNOWN! |
  4247.      +---------------------------------++------------------------------+
  4248.      |                                                                 |
  4249.      | Starting clean attempt. Analyzing infected file...              |
  4250.      | Anti-Vir not found: original state unknown. Trying emulation... |
  4251.      | Emulation terminated:                                           |
  4252.      |                                                                 |
  4253.      | C:\VIRUS\TEST.EXE                                               |
  4254.      | CS:IP    Instruction     AX  BX  CX  DX  DS  SI  ES  DI  SS  SP |
  4255.      | 9330:0101  mov ah,40    FFFE9330FFFFEFFFD382FFEDEFFEFFFF9520007E|
  4256.      | 9330:0103  mov bx,0002  40FE9330FFFFEFFFD382FFEDEFFEFFFF9520007E|
  4257.      | 9330:0106  mov cx,0016  40FE0002FFFFEFFFD382FFEDEFFEFFFF9520007E|
  4258.      | 9330:0109  mov dx,cs    40FE00020016EFFFD382FFEDEFFEFFFF9520007E|
  4259.      | 9330:010B  mov ds,dx    40FE000200169330D382FFEDEFFEFFFF9520007E|
  4260.      | 9330:010D  mov dx,0117  40FE0002001693309330FFEDEFFEFFFF9520007E|
  4261.      | 9330:0110  int 21       40FE0002001601179330FFEDEFFEFFFF9520007E|
  4262.      | 9330:0112  mov ax,4CFF  40FE0002001601179330FFEDEFFEFFFF9520007E|
  4263.      | 9330:0115  int 21       4CFF0002001601179330FFEDEFFEFFFF9520007E|
  4264.      | 9330:0115  <End of emulation>                                   |
  4265.      +-----------------------------------------------------------------+ 
  4266.  
  4267.      While Cleaning
  4268.  
  4269.      TbClean will display as much information as possible about the current
  4270.      operation, as illustrated above. All the major actions will be in the
  4271.      emulation window, displaying a disassembly and the register contents of
  4272.      the program under scrutiny, along with a progress report. The status
  4273.      windows reveal useful details of the infected file and, if TbClean can
  4274.      find a suitable Anti-Vir.Dat file, its original status. You may abort
  4275.      the cleaning process by pressing <Ctrl-Break>.
  4276.  
  4277.  
  4278.      The job isn't done yet    
  4279.  
  4280.      A successful purge is not the end of the story! Your job is only parti-
  4281.      ally completed. Some viruses damage data files. They could randomly
  4282.      change bytes on your disks, swap sectors, or perform other nasty tricks.
  4283.      A cleaning utility will never be able to repair your data! Check your
  4284.      data files thoroughly and consult a viral expert to find out what the
  4285.  
  4286.                                      III - 37
  4287.  
  4288.  
  4289. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4290.  
  4291.  
  4292.      virus is capable of doing. If there is any doubt, restoring the data is
  4293.      definitely the most reliable option.
  4294.  
  4295. =>   Under no circumstances should you continue to use cleaned software!
  4296.  
  4297.      Cleaning is a temporary solution to allow you to delay a large restore
  4298.      operation until the first available slack period. You should not rely on
  4299.      a cleaned program for any length of time.  Please, don't take this as a
  4300.      put down of antiviral cleaning agents. If your data is valuable to you,
  4301.      you should care for it as much as possible, and sticking to original
  4302.      software only is no more than an elementary precaution. In other words,
  4303.      restore the original programs as soon as possible!
  4304.  
  4305.  
  4306.      Cleaning Limitations
  4307.  
  4308.      Although TbClean has a very high success rate and is able to clean
  4309.      programs that other cleaners refuse to process, not all viruses can be
  4310.      removed, and not all files can be cleaned. 
  4311.  
  4312.      Viruses that cannot be removed from an infected file:
  4313.  
  4314.      Overwriting viruses. 
  4315.  
  4316.      This type of virus does not add itself to the end of the original
  4317.      program, they just copy themselves over the original file. They do not
  4318.      attempt to start the original program but they will simply return you to
  4319.      DOS after they are activated or will hang the machine. Since the origi-
  4320.      nal file is overwritten and damaged, no cleaner can remove the virus. 
  4321.  
  4322.      Some encrypted viruses. 
  4323.  
  4324.      TbClean is usually able to decrypt the virus. However, some viruses use
  4325.      anti-debugger features that TbClean cannot cope with yet. 
  4326.  
  4327.  
  4328.      The way some program files are constructed makes them impossible to
  4329.      clean and reinstatement will be the only option. This category includes:
  4330.  
  4331.      EXE-programs with internal overlays. 
  4332.  
  4333.      TbScan marks these files with an 'i' flag. Any infection is bound to
  4334.      cause major damage to these files. Some viruses recognize such programs
  4335.      and do not infect them, but most viruses infect these programs anyway,
  4336.      and corrupt the program. No cleaner can repair such damage.
  4337.  
  4338.      Programs with sanity check routines. 
  4339.  
  4340.      Some programs - mostly anti-virus software or copy-protected programs -
  4341.      perform some kind of sanity check. Heuristic cleaning of an infected
  4342.      program normally results in a program that is not physically identical
  4343.      to the original. Although the virus is removed from the program and the
  4344.  
  4345.                                      III - 38
  4346.  
  4347.  
  4348. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4349.  
  4350.  
  4351.      program is functionally identical to the original, the sanity check will
  4352.      usually detect the slight changes and abort the program.
  4353.  
  4354.  
  4355.      Multiple files cleaning
  4356.  
  4357.      TbClean has no provisions for cleaning multiple programs in one run.
  4358.      There are two reasons for this omission:
  4359.  
  4360.      -    TbClean can not search for viruses automatically since it does not
  4361.           know any virus.
  4362.  
  4363.      -    We highly recommend to clean the system on a file-by-file approach.
  4364.           Clean one file, verify the result, and proceed with the next file.
  4365.           This helps you to keep track of which file is clean, which file is
  4366.           damaged and should be restored from a backup, and which file is
  4367.           still infected.
  4368.  
  4369.  
  4370.  
  4371.  
  4372.  
  4373.  
  4374.  
  4375.  
  4376.  
  4377.  
  4378.  
  4379.  
  4380.  
  4381.  
  4382.  
  4383.  
  4384.  
  4385.  
  4386.  
  4387.  
  4388.  
  4389.  
  4390.  
  4391.  
  4392.  
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399.  
  4400.  
  4401.  
  4402.  
  4403.  
  4404.                                      III - 39
  4405.  
  4406.  
  4407. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4408.  
  4409.  
  4410. 5. Ongoing virus prevention: TbMon
  4411.  
  4412.      The Purpose of TbMon utilities
  4413.  
  4414.      TbMon is a set of three memory resident anti-virus utilities:
  4415.  
  4416.      TbMem     Detects attempts of programs to remain resident in 
  4417.                                                                  memory, and
  4418.                makes sure that no program can remain resident in memory
  4419.                without permission.
  4420.  
  4421.      TbFile    detects attempts of programs to infect other programs. 
  4422.  
  4423.      TbDisk    detects attempts of programs to write directly to the disk
  4424.                (without using DOS), attempts to format, etc.
  4425.  
  4426.      Instructions on how to use these utilities are presented below. 
  4427.  
  4428.  
  4429.      How to use TbMon programs
  4430.  
  4431.      Loading TBMon programs
  4432.      The TbMon programs are all loaded in the same way. For specific informa-
  4433.      tion on each of the programs, such as commandline options, please refer
  4434.      to the appropriate sections in this chapter.
  4435.  
  4436.      There are three possible ways to start the TbMon programs:
  4437.  
  4438.      From the DOS prompt or within the Autoexec.Bat file:
  4439.           <path>Tbxx
  4440.  
  4441.      From the Config.Sys as a TSR (Dos 4+):
  4442.           Install=<path>Tbxxx.Exe
  4443.  
  4444.      The "Install=" Config.Sys command is NOT available in DOS 3.xx.
  4445.  
  4446.      To invoke a TbMon program from the Config.Sys as a device driver:
  4447.           Device=<path>Tbxxx.Exe
  4448.  
  4449.  
  4450.      A TbMon program should always work correctly after being started from
  4451.      within the Autoexec.Bat. Unlike other anti-virus products, the Thunder-
  4452.      byte anti-virus utilities can be loaded before the network is started
  4453.      without losing the protection after the network is started.
  4454.  
  4455.  
  4456.      Highload TBMon programs
  4457.  
  4458.      In addition to the three invocation possibilities DOS 5 users can
  4459.      "highload" TbMon programs in a UMB (upper memory block) if it is availa-
  4460.      ble:
  4461.  
  4462.           LoadHigh <path>Tbxxx.Exe
  4463.  
  4464.                                      III - 40
  4465.  
  4466.  
  4467. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4468.  
  4469.  
  4470.  
  4471.      Within the Config.Sys file a TbMon program can also be loaded high:
  4472.  
  4473.           DeviceHigh=<path>Tbxxx.Exe
  4474.  
  4475.  
  4476.      TBMon and MS-Windows
  4477.  
  4478.      Windows users should load a TbMon program BEFORE starting Windows. If
  4479.      you do that there is only one copy of the TbMon program in memory, but
  4480.      every DOS-window will nevertheless have the fully functional TbMon
  4481.      program in it. The TbMon program detects if Windows is starting up, and
  4482.      will switch itself into multitasking mode if necessary. You can even
  4483.      disable the program in one window without affecting the functionality in
  4484.      another window.
  4485.  
  4486.  
  4487.      Command line options
  4488.  
  4489.      All TbMon utilities can be loaded in combination with several options.
  4490.      You may specify the options listed below in combination with all three
  4491.      utilities. The specific options are described in the relevant sections.
  4492.  
  4493.      help (?)
  4494.      If you specify this option the TbMon program will show you the brief
  4495.      help as shown above.
  4496.  
  4497.      off (d)
  4498.      If you specify this option the TbMon program will be disabled, but it
  4499.      will remain in memory.
  4500.  
  4501.      on (e)
  4502.      If you use this option the TbMon program will be activated again after
  4503.      you disabled it with the 'off' option.
  4504.  
  4505.      remove (r)
  4506.      This option can be used to remove the resident part of the TbMon program
  4507.      from your system's memory. All memory used by the TbMon program will be
  4508.      released. Unfortunately, the removal of a TSR is not always possible. 
  4509.      The TbMon program checks whether it is safe to remove the resident part
  4510.      from memory. If it is not safe it just disables the TbMon program. A TSR
  4511.      can not be removed if another TSR has been started after it. If this
  4512.      happens with the TbMon program, it will completely disable itself.
  4513.  
  4514.      secure (s)
  4515.      If you specify this option, the user is not allowed to give permission.
  4516.      All warnings are automatically answered with 'Abort'. It is also not
  4517.      possible anymore to unload the utilities with 'remove' or to disable
  4518.      them with option 'off'.
  4519.  
  4520.  
  4521. 5.1. TbMem
  4522.  
  4523.                                      III - 41
  4524.  
  4525.  
  4526. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4527.  
  4528.  
  4529.      The Purpose of TbMem
  4530.  
  4531.      Most viruses remain resident in memory once they have been executed.
  4532.      While resident in memory, they may have many opportunities to infect
  4533.      other files in the background, interfere with the system operation, hide
  4534.      themselves from virus scanners or checksummers, and/or perform other
  4535.      nasty tasks.
  4536.  
  4537.      On the other hand, because so many viruses remain resident in memory, it
  4538.      is easy to detect most of them once the process of becoming resident in
  4539.      memory is monitored.
  4540.  
  4541.      TbMem monitors the system and ensures that no program will remain
  4542.      resident in memory without permission. This will draw attention to any
  4543.      software that attempts to remain resident, thereby reducing the likeli-
  4544.      hood that a virus will be able to go unnoticed. TbMem also protects
  4545.      CMOS.
  4546.  
  4547.  
  4548.      What is a memory-resident program?
  4549.  
  4550.      Most programs will be invoked by a command on the DOS command line,
  4551.      perform some task, and finally terminate, placing you right back where
  4552.      you started.
  4553.       
  4554.      Some programs however continue to operate after they are terminated.
  4555.      These programs load themselves into memory of your PC, remain resident
  4556.      in the memory and perform some task in the background. Programs in this
  4557.      category are disk caches, print spoolers, network software, etc. These
  4558.      programs are often referred to as 'TSR-software', which means 'Termina-
  4559.      te-and-Stay-Resident'.
  4560.  
  4561.      Most viruses remain resident in memory too, and that is why the process
  4562.      of becoming resident in memory should be controlled in some way, prefe-
  4563.      rably by TbMem.
  4564.  
  4565.      TbMem offers you the option to abort the program before it can become
  4566.      resident. TbMem will guard the DOS TSR function calls, while also
  4567.      monitoring important interrupts and memory structures. TbMem uses the
  4568.      Anti-Vir.Dat records to determine whether a program is allowed to remain
  4569.      resident in memory.
  4570.  
  4571.      Many common TSRs will be recognized by TbSetup. However, if TbSetup
  4572.      doesn't recognize a TSR, TbMem will ask your permission for the TSR to
  4573.      load. Permission information will be maintained in the Anti-Vir.Dat
  4574.      files, to prevent TbMem from bothering you when an approved TSR is
  4575.      loading.
  4576.  
  4577.      TbMem will also check the contents of the CMOS configuration memory
  4578.      after each program termination, to make sure that programs do not change
  4579.      it unnoticed. TbMem offers the possibility to restore the CMOS configu-
  4580.      ration when it has been changed. Once you have 'taught' TbMem which
  4581.  
  4582.                                      III - 42
  4583.  
  4584.  
  4585. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4586.  
  4587.  
  4588.      programs are TSRs and which are not on one PC, you can use TbSetup to
  4589.      set the permission flag of these files on other machines.
  4590.  
  4591.      TbMem installs a hot key that can be used to escape from nearly all
  4592.      programs.
  4593.  
  4594.      TbMem is fully network compatible. It does not require you to reload the
  4595.      checker after logging on to a network. 
  4596.  
  4597.  
  4598.      How to use TbMem
  4599.  
  4600.      Since TbMem is a memory resident program, it can be executed and confi-
  4601.      gured from the command line or from within a batch file. TbMem should
  4602.      however be started automatically and as soon as the computer boots up,
  4603.      preferably during the execution of Config.Sys or Autoexec.Bat file. 
  4604.  
  4605.      Be sure TbDriver has already been loaded - TbMem wil refuse to start up
  4606.      without it.
  4607.  
  4608.  
  4609.      Command line options
  4610.  
  4611.      It is possible to specify options on the command line. The upper four
  4612.      options are always available, the other options are available only if
  4613.      TbMem is not memory resident.
  4614.  
  4615.  
  4616.      option  parameter      short explanation
  4617.      --------------------------------------------------------------
  4618.      help                    ?    display this helpscreen
  4619.      off                     d    disable checking
  4620.      on                      e    enable checking
  4621.      remove                  r    remove TbMem from memory
  4622.  
  4623.      secure                  s    do not execute unauthorized TSRs 
  4624.      hotkey  <keycode>       k    specify keyboard scancode for hotkey
  4625.      nocancel                n    do not install cancel hot key
  4626.      nocmos                  m    do not protect CMOS
  4627.  
  4628.  
  4629.      help (?)
  4630.      If you specify this option TbMem will show you the brief help as shown
  4631.      above.
  4632.  
  4633.      off (d)
  4634.      If you specify this option TbMem will be disabled, but it will remain in
  4635.      memory.
  4636.  
  4637.      on (e)
  4638.      If you use this option TbMem will be activated again after you disabled
  4639.      it with the 'off' option.
  4640.  
  4641.                                      III - 43
  4642.  
  4643.  
  4644. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4645.  
  4646.  
  4647.      remove (r)
  4648.      This option can be used to remove the resident part of TbMem from your
  4649.      system's memory. All memory used by TbMem will be released. Unfortunate-
  4650.      ly, the removal of a TSR (like TbMem) is not always possible. TbMem
  4651.      checks whether it is safe to remove the resident part from memory. If it
  4652.      is not safe it just disables TbMem. A TSR can not be removed if another
  4653.      TSR has been started after it. If this happens with TbMem it will
  4654.      completely disable itself.
  4655.  
  4656.      secure (s)
  4657.      TbMem normally asks the user to continue or to cancel when a program
  4658.      tries to remain resident in memory. In some business environments
  4659.      however this choice should not be made by employees. By using option
  4660.      'secure' it is no longer possible to execute new or unknown resident
  4661.      software. It is also no longer possible to use option 'remove' or 'off'.
  4662.  
  4663.      nocancel (n)
  4664.      TbMem normally installs the program cancel hot key (Ctrl-Alt-Insert). If
  4665.      you do not want this, specify this option. This also saves a few bytes
  4666.      of memory.
  4667.  
  4668.      hotkey (k)
  4669.      TbMem offers you a reliable way to escape from any program by pressing a
  4670.      special key combination. This can be used to escape from programs that
  4671.      'hang', but of course also to escape from software that seems to be
  4672.      malicious (although powering down and rebooting from a write-protected
  4673.      system disk is recommended). 
  4674.  
  4675.      The program cancel hot key of TbMem is by default Ctrl-Alt-Insert. If
  4676.      you wish, you can specify another keyboard option with option 'hotkey
  4677.      =<keycode>'. The scancode is specified in a 4 digit hexadecimal number.
  4678.      The far left bytes specify the shift-key mask, the far right bytes
  4679.      specify the keyboard scancode. Consult your machine manual for a list of
  4680.      scancodes. The default scancode is 0C52h (Ctrl-Alt-Insert). The scancode
  4681.      for Ctrl-Alt-Escape is 0C01h.
  4682.  
  4683.      nocmos (m)
  4684.      TbMem normally protects the CMOS memory if available. If you do not want
  4685.      TbMem to do this you can specify this option.
  4686.  
  4687.      Examples
  4688.           C:\utils\TbMem
  4689.      or:
  4690.           Device=C:\utils\TbMem.Exe
  4691.  
  4692.  
  4693.      TbMem in process
  4694.  
  4695.      If TbMem detects that a program tries to remain resident in memory, a
  4696.      pop-up window will appear with a message. You can either choose to
  4697.      continue, or to abort the program invoca-tion. If you answer 'NO' to the
  4698.      question 'Remove program from memory?' the program will continue undis-
  4699.  
  4700.                                      III - 44
  4701.  
  4702.  
  4703. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4704.  
  4705.  
  4706.      turbed, and TbMem places a mark in the Anti-Vir.Dat file about this
  4707.      program. Next time you invoke the same resident program, TbMem will not
  4708.      disturb you again.
  4709.  
  4710.      There are a lot of programs which normally remain resident in memory,
  4711.      such as disk caches, print spoolers, etc. How does TbMem distinguish
  4712.      between these programs and viruses?
  4713.  
  4714.      TbMem uses the Anti-Vir.Dat records generated by TbSetup to keep track
  4715.      of which files are normal TSRs and which are not. Most common resident
  4716.      software will be marked as such by TbSetup, so you don't have to worry
  4717.      about these files. 
  4718.  
  4719.      If TbMem pops up with the message that a program tries to remain resi-
  4720.      dent in memory, you have to consider the purpose of the program mentio-
  4721.      ned. Is the program supposed to continue to operate in the background?
  4722.      The answer is obviously yes if the program mentioned is a disk cache,
  4723.      print spooler, pop-up utility or system extension software.
  4724.  
  4725.      However, if the message appears after you have finished a text proces-
  4726.      sing job, or terminated a database or spreadsheet application, something
  4727.      is definitely wrong! You ought to terminate the program and use a virus
  4728.      scanner to check the system.
  4729.  
  4730.      The same applies when software that operates normally without staying
  4731.      resident in memory suddenly changes its behavior and tries to remain
  4732.      resident in memory.
  4733.  
  4734.  
  4735. 5.2. TbFile
  4736.  
  4737.      The Purpose of TbFile
  4738.  
  4739.      The two most perilous viral categories are the bootsector and the file
  4740.      variants. File viruses all have a common purpose -they infect programs.
  4741.      Infecting a program involves very unusual file manipulations that are
  4742.      quite dissimilar to normal files handling procedures, so in order to
  4743.      detect viral activity it is essential to keep an eye out for program
  4744.      file changes involving peculiar actions.
  4745.  
  4746.      TbFile monitors the system and detects attempts of programs to infect
  4747.      other programs. Unlike other file guards, TbFile monitors the system
  4748.      only for virus specific file modifications. TbFile won't generate an
  4749.      alarm when a program modifies itself for configuration purposes, nor
  4750.      does it bother you when you update a program or create one yourself.
  4751.      Running an average system, configurations should never cause a false
  4752.      alarm.
  4753.  
  4754.      TbFile not only detects attempts to infect programs, it also offers you
  4755.      the option to abort the infection process and to continue the program.
  4756.  
  4757.  
  4758.  
  4759.                                      III - 45
  4760.  
  4761.  
  4762. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4763.  
  4764.  
  4765.      TbFile detects other suspicious activities - including setting the
  4766.      seconds value of time stamps to an illegal value.
  4767.  
  4768.      TbFile has a very sophisticated infection detector and it will not give
  4769.      a false alarm when you perform standard file operations. In normal
  4770.      configurations you will never get a false alarm! 
  4771.  
  4772.      Files can be protected against unwanted modifications by means of the
  4773.      read-only attribute. Without TbFile this standard DOS protection can be
  4774.      circumvented easily. TbFile however makes sure any attempts to sabotage
  4775.      the readonly attribute will not go undetected. This gives you added
  4776.      security by letting you use an uncomplicated method to fully protect
  4777.      your files against destruction and infection.
  4778.  
  4779.      TbFile is fully network compatible. It does not require you to reload
  4780.      the checker after logging on to a network. Other resident anti-virus
  4781.      utilities force you to choose between protection before the network is
  4782.      started, or protection after the network is started, but not both.
  4783.  
  4784.  
  4785.      Command line options
  4786.  
  4787.      It is possible to specify options on the command line. The upper four
  4788.      options are always available, the other options are only available if
  4789.      TbFile is not already memory-resident.
  4790.  
  4791.  
  4792.      option     short explanation
  4793.      ---------- ----- -----------------------
  4794.  
  4795.      help       ?     display this helpscreen
  4796.      off        d     disable checking
  4797.      on         e     enable checking
  4798.      remove     r     remove TbFile from memory
  4799.  
  4800.      secure     s     all permissions denied
  4801.      allattrib  a     readonly check on all files
  4802.      compat     c     allow CPM style calls
  4803.  
  4804.      help (?)
  4805.      If you specify this option TbFile will show you the brief help as shown
  4806.      above.
  4807.  
  4808.      off (d)
  4809.      If you specify this option TbFile will be disabled, but it will remain
  4810.      in memory.
  4811.  
  4812.      on (e)
  4813.      If you use this option TbFile will be activated again after you disabled
  4814.      it with the 'off' option.
  4815.  
  4816.      remove (r)
  4817.  
  4818.                                      III - 46
  4819.  
  4820.  
  4821. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4822.  
  4823.  
  4824.      This option can be used to remove the resident part of TbFile from your
  4825.      system's memory.  All memory used by TbFile
  4826.      will be released.
  4827.      Unfortunately, the removal of a TSR (like TbFile) is not always possi-
  4828.      ble.  TbFile checks whether it is safe to remove the resident part from
  4829.      memory. If it is not safe it just disables TbFile. A TSR can not be
  4830.      removed if another TSR has been started after it. If this happens with
  4831.      TbFile it will completely disable itself.
  4832.  
  4833.      secure (s)
  4834.      TbFile normally asks the user to continue or to cancel when a program
  4835.      tries to perform a suspicious operation. In some business environments
  4836.      however this choice should not be made by employees. By using option
  4837.      'secure' it is no longer possible to allow suspicious operations. It is
  4838.      also no longer possible to use options 'off' and 'remove'.
  4839.  
  4840.      allattrib (a)
  4841.      TbFile normally only protects the readonly attribute of executables
  4842.      (program files with the extension COM and EXE). If you want to have the
  4843.      readonly check on all files add option 'allattrib'. In this case you
  4844.      will always get an alarm when an attempt is made to remove the readonly
  4845.      attribute of any file.
  4846.  
  4847.      compat (c)
  4848.      DOS has still some CPM - an earlier operating system - functions left.
  4849.      No DOS program uses these functions anymore, but some viruses use these
  4850.      functions to bypass anti-virus software. TbFile closes these backdoors
  4851.      by default. Option 'compat' prevents this.
  4852.  
  4853.  
  4854.      Examples
  4855.           C:\utils\TbFile allattrib
  4856.      or:
  4857.           Device=C:\utils\TbFile.Exe allattrib
  4858.  
  4859.  
  4860. 5.3. TbDisk
  4861.  
  4862.      The Purpose of TbDisk
  4863.  
  4864.      Many viruses try to damage the data on the disk. They accomplish this by
  4865.      formatting the disk, overwriting the FAT, swapping disk sectors, etc.
  4866.      Almost anything is possible.
  4867.  
  4868.      Another category of malicious software, known as 'bootsector virus
  4869.      droppers', installs a bootsector virus on the disk. The program itself
  4870.      is not a virus, so detection with virus scanners and other anti-viral
  4871.      software is very difficult. The only way to detect such programs is by
  4872.      monitoring their behavior.
  4873.  
  4874.      The main problem lies in the way these programs manage to avoid the
  4875.      usual DOS procedures - they go directly to the BIOS, the Basic In-
  4876.  
  4877.                                      III - 47
  4878.  
  4879.  
  4880. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4881.  
  4882.  
  4883.      put/Output System. That is why you need TbDisk - to monitor the system
  4884.      and to ensure that no program can write directly to disk without permis-
  4885.      sion! It draws attention to any software that attempts to write directly
  4886.      to disk, thereby reducing the likelihood that a virus will remain
  4887.      unnoticed. TbDisk prevents viruses from damaging data on your disk and
  4888.      stops bootsector virus droppers in their tracks.
  4889.  
  4890.      TbDisk will come in handy, too, if you ever need to write protect a hard
  4891.      disk. This bonus feature often helps when testing new software.
  4892.  
  4893.      TbDisk not only informs you when a program tries to write directly to
  4894.      the disk, it also offers you the option to abort the program before it
  4895.      can cause any damage.
  4896.  
  4897.      Detection of 'stealth' techniques. TbDisk is able to detect attempts to
  4898.      single step through the BIOS handler, and even monitor the use of
  4899.      undocumented calls that could cause disk damage. 
  4900.  
  4901.      TbDisk is able to distinguish whether DOS or an application makes direct
  4902.      write attempts via Int 13h. Direct writes are perfectly legal for DOS,
  4903.      but unusual for application software. 
  4904.  
  4905.      TbDisk needs little maintenance. TbDisk uses the Anti-Vir.Dat records to
  4906.      determine if a program is allowed to write directly to the disk, inclu-
  4907.      ding popular disk utilities, which will have been recognized by TbSetup.
  4908.      In the absence of an Anti-vir.Dat record, TbDisk will ask your approval
  4909.      first and, if granted, updates the record accordingly in order to avoid
  4910.      repeated warnings about the same program.
  4911.  
  4912.      TbDisk is fully network compatible. It does not require you to reload
  4913.      the program after logging on to a network. Other resident anti-virus
  4914.      utilities force you to choose between either protection before the
  4915.      network is started, or protection after.
  4916.  
  4917.  
  4918.      How to use TbDisk
  4919.  
  4920.      Loading TBDisk
  4921.  
  4922.      Improper installation can cause excessive amounts of false alarms! If
  4923.      you want to install TbDisk in your Config.Sys or AutoExec.Bat file, it
  4924.      is highly recommended to use the 'install' option of TbDisk first. If
  4925.      the system continues to behave normally and TbDisk does not give false
  4926.      alarms when you copy files on your hard disk, TbDisk is installed
  4927.      correctly and you can remove option 'install'.
  4928.  
  4929.  
  4930.      TBDisk in your Install
  4931.  
  4932.      Failure to use option 'install' when you install TbDisk Config.Sys or
  4933.      AutoExec.Bat file may cause loss of data! Option 'install' causes TbDisk
  4934.      to allow all disk accesses, it will however pop-up a message like it
  4935.  
  4936.                                      III - 48
  4937.  
  4938.  
  4939. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4940.  
  4941.  
  4942.      would do in normal mode. If no false alarms occur when you copy files on
  4943.      your hard disk, TbDisk is installed correctly and option 'install' can
  4944.      be removed.
  4945.  
  4946.      If TbDisk causes false alarms you should load TbDisk further ahead in
  4947.      your Config.Sys or AutoExec.Bat file, until it works as it should do.
  4948.  
  4949.      Unlike the other TBAV utilities it is recommended to load TbDisk after
  4950.      other resident software!  Failure to do so can cause excessive amounts
  4951.      of false alarms!
  4952.  
  4953.  
  4954.      TBDisk and MS-Windows
  4955.  
  4956.      TbDisk detects if Windows is starting up, and will switch itself into
  4957.      multi tasking mode if necessary. You can even disable TbDisk in one
  4958.      window without affecting the functionality in another window.  If you
  4959.      configured Windows to use fast 32-bit disk access you might need TbDisk
  4960.      option 'win32' if Windows displays an error-message.
  4961.  
  4962.  
  4963.      Command line options
  4964.  
  4965.      It is possible to specify options on the command line. The upper four
  4966.      options are always available, the other options are available only if
  4967.      TbDisk is not memory resident.
  4968.  
  4969.  
  4970.      option   short explanation
  4971.      ------   ----- ------------------
  4972.  
  4973.      help      ?    display this helpscreen
  4974.      remove    r    remove TbDisk from memory
  4975.      off       d    disable checking
  4976.      on        e    enable checking
  4977.      wrprot    p    make hard disk write protected
  4978.      nowrprot  n    allow writes to hard disk
  4979.  
  4980.      win32     w    allow Windows 32bit disk access
  4981.      secure    s    deny access without asking
  4982.      nostealth a    do not detect stealth disk access
  4983.      notunnel  t    do not detect tunneling
  4984.      install   i    installation test mode
  4985.  
  4986.  
  4987.      help (?)
  4988.      If you specify this option TbDisk will show you the brief help as shown
  4989.      above. Once TbDisk has been loaded the help option will not show all
  4990.      options anymore.
  4991.  
  4992.      remove (r)
  4993.  
  4994.  
  4995.                                      III - 49
  4996.  
  4997.  
  4998. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  4999.  
  5000.  
  5001.      This option can be used to remove the resident part of TbDisk from your
  5002.      system's memory.  All memory used by TbDisk will be released.
  5003.      Unfortunately, the removal of a TSR (like TbDisk) is not always possi-
  5004.      ble.  TbDisk checks whether it is safe to remove the resident part from
  5005.      memory. If it is not safe it just disables TbDisk. A TSR can not be
  5006.      removed if another TSR has been started after it. If this happens with
  5007.      TbDisk it will completely disable itself.
  5008.  
  5009.      off (d)
  5010.      If you specify this option TbDisk will be disabled, but it will remain
  5011.      in memory.
  5012.  
  5013.      on (e)
  5014.      If you use this option TbDisk will be activated again after you disabled
  5015.      it with the 'off' option.
  5016.  
  5017.      wrprot (p)
  5018.      Hard disks are more difficult to protect against writing than floppies,
  5019.      which adds considerably to the risks involved when, for instance,
  5020.      testing new software. Sometimes you might want to find out what this
  5021.      software will do to your hard disk and how this could possibly affect
  5022.      your valuable data. With option 'wrprot' it will be safer to do so.
  5023.      Whenever a program wishes to write to a protected disk you will receive
  5024.      a message such as:
  5025.  
  5026.      "Write protect error writing drive C: A)bort, R)etry, I)gnore?"
  5027.  
  5028.      You may then take appropriate action.
  5029.  
  5030. =>   Note: A software write protection solution is not absolutely reliable.
  5031.      It can be bypassed, but, fortunately, viruses that are actually capable
  5032.      to do so are few and far between. It can be a valuable shield against
  5033.      most malicious software, despite its shortcomings.
  5034.  
  5035.      nowrprot (n)
  5036.      You can use this option to undo the option 'wrprot'.
  5037.  
  5038.      win32 (w)
  5039.      Windows 386 Enhanced Mode uses some undocumented DOS calls to retrieve
  5040.      the original BIOS disk handler when 32-bit disk access has been enabled.
  5041.      Since TbDisk guards these calls, 32-bit disk access will no longer be
  5042.      possible, unless you specify option 'win32' when TbDisk is initialized. 
  5043.  
  5044. =>   Note: Use this option, which reduces antiviral security to some extent,
  5045.      only in Windows 386 Enhanced Mode with fast 32-bit disk access enabled!
  5046.  
  5047.      secure (s)
  5048.      TbDisk normally asks whether the user wants to continue or cancel when a
  5049.      program tries to perform direct disk access. In some business environ-
  5050.      ments, however, this should not be left up to employees. Option 'secure'
  5051.      disables direct disk access permission to new or unknown software. It
  5052.      also disables option 'off' and 'remove'.
  5053.  
  5054.                                      III - 50
  5055.  
  5056.  
  5057. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5058.  
  5059.  
  5060.      nostealth (a)
  5061.      TbDisk tries to detect direct calls into the BIOS. If such an  attempt
  5062.      occurs, TbDisk pops up with a message that the disk is accessed in an
  5063.      unusual way. If this feature causes false alarms, you can use this
  5064.      option to turn it off.
  5065.  
  5066.      notunnel (t)
  5067.      One of TbDisk's regular tasks is to detect tunneling attempts on the
  5068.      part of viruses. 'Tunneling' is a technique used by viruses to determine
  5069.      the location of the BIOS system code in memory, and to use that address
  5070.      to communicate with the BIOS directly. This will inactivate all TSR
  5071.      programs, including resident anti-virus software. TbDisk can detect
  5072.      'tunneling' attempts in advance and informs you about this. Some other
  5073.      antiviral products employ tunneling techniques also to bypass resident
  5074.      viruses, causing a false alarm. If you make use of such other anti-virus
  5075.      products, you may use the option 'notunnel' to disable tunneling-detec-
  5076.      tion.
  5077.  
  5078.      install (i)
  5079.      Incorrect installation may result in a large number of false alarms. You
  5080.      should use option 'install' when installing TbDisk, which will reduce
  5081.      the risk of cancelling a valid disk write operation as a result of false
  5082.      alarms.
  5083.  
  5084.  
  5085.      TbDisk in process
  5086.  
  5087.      What is Direct Disk Access?  
  5088.      Programs often access files, usually through the operating system (DOS).
  5089.      Whenever a program wants to update a file, for example, it asks DOS to
  5090.      write the data to disk. There are however also possibilities to write to
  5091.      a disk without using DOS. This is called 'direct disk access'.
  5092.  
  5093.      Normal programs do not write to the disk directly. However, there are
  5094.      some programs that need to write to disk directly. Programs in this
  5095.      category are:
  5096.  
  5097.      -    Format utilities. A disk can only be formatted by direct disk
  5098.           access.
  5099.  
  5100.      -    Disk diagnosis utilities (such as the NORTON disk doctor, DOS
  5101.           chkdsk, etc.)
  5102.  
  5103.      -    Disk optimizers.
  5104.  
  5105.      As many viruses are able to perform direct disk access as well, it is
  5106.      essential to have some control over all this. TbDisk can distinguish
  5107.      between legitimate programs and a virus with the help of the Anti-
  5108.      Vir.Dat records, generated by TbSetup under your guidance.
  5109.  
  5110.  
  5111.      Detecting direct disk accesses
  5112.  
  5113.                                      III - 51
  5114.  
  5115.  
  5116. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5117.  
  5118.  
  5119.      Whenever TbDisk pops up with the message that a program accesses to the
  5120.      disk directly, consider its purpose carefully. While it is perfectly
  5121.      acceptable for a format utility or a disk optimizer to format or edit
  5122.      disk sectors, the same cannot be said about a word processor or databa-
  5123.      se. When TbDisk warns you that a spreadsheet or some other 'normal'
  5124.      program is about to format a sector, you can be sure that something is
  5125.      wrong. Terminate the program -pronto!- and check things out with a virus
  5126.      scanner before the worst can happen.
  5127.  
  5128.  
  5129.  
  5130.  
  5131.  
  5132.  
  5133.  
  5134.  
  5135.  
  5136.  
  5137.  
  5138.  
  5139.  
  5140.  
  5141.  
  5142.  
  5143.  
  5144.  
  5145.  
  5146.  
  5147.  
  5148.  
  5149.  
  5150.  
  5151.  
  5152.  
  5153.  
  5154.  
  5155.  
  5156.  
  5157.  
  5158.  
  5159.  
  5160.  
  5161.  
  5162.  
  5163.  
  5164.  
  5165.  
  5166.  
  5167.  
  5168.  
  5169.  
  5170.  
  5171.  
  5172.                                      III - 52
  5173.  
  5174.  
  5175. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5176.  
  5177.  
  5178. 6. TBAV Tools
  5179.  
  5180.  
  5181. 6.1. TbUtil
  5182.  
  5183.      The Purpose of TbUtil
  5184.  
  5185.      TbUtil provides a defense against partition table and bootsector viru-
  5186.      ses:
  5187.  
  5188.      TbUtil copies the partition table, bootsector and CMOS data area into a
  5189.      file. On a regular base you can use TbUtil to compare both the current
  5190.      and the copied versions of the partition table, bootsector and CMOS data
  5191.      area. After a (virus) accident you can restore the copy with the TbUtil
  5192.      program. 
  5193.  
  5194.      TbUtil removes a partition table virus without having to low-level
  5195.      format the hard disk, even if there is no backup of the partition table.
  5196.  
  5197.      TbUtil removes bootsector viruses.
  5198.  
  5199.      TbUtil creates a partition table that has some first-line virus defenses
  5200.      built-in.
  5201.  
  5202.      TbUtil replaces the infected or clean bootsector by a safe TBAV boots-
  5203.      ector.
  5204.  
  5205.  
  5206.      What is a partition table?
  5207.  
  5208.      A partition is a logical drive on a hard disk. A physical hard disk can
  5209.      contain multiple DOS partitions. Every DOS partition has its own drive
  5210.      ID (eg. C: D: E:). The partition table contains the disk lay-out and the
  5211.      start and end cylinder of every partition. The partition table also
  5212.      carries information about the operating system of a partition and which
  5213.      partition should be used to boot. The partition table is always located
  5214.      at the first sector of the hard disk. It is called the "Master Boot
  5215.      Record".
  5216.  
  5217.  
  5218.      No format needed
  5219.  
  5220.      Unlike most file viruses, partition table viruses are hard to remove.
  5221.      The only solution is to low-level format the hard disk and to make a new
  5222.      partition table, or to make use of undocumented DOS commands.
  5223.  
  5224.      TbUtil makes a backup of the partition table and bootsector, and will
  5225.      use this backup to compare and restore both the original partition table
  5226.      and bootsector once they have been infected. You don't have to format
  5227.      your disk anymore to get rid of a partition table or bootsector virus.
  5228.      The program can also restore the CMOS configuration.
  5229.  
  5230.  
  5231.                                      III - 53
  5232.  
  5233.  
  5234. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5235.  
  5236.  
  5237.      If desired TbUtil replaces the partition table code with an immunized
  5238.      partition table, containing facilities against viruses. The TbUtil
  5239.      partition code will be executed before the bootsector gains control, so
  5240.      it is able to check the bootsector in a clean environment. Once the
  5241.      bootsector is executed it is difficult to check it, because the virus is
  5242.      already resident in memory and can fool any protection. Instead of
  5243.      booting from a clean DOS diskette just to inspect the bootsector, the
  5244.      TbUtil partition code performs a CRC calculation on the bootsector just
  5245.      before control is passed to it.
  5246.  
  5247.      If the bootsector has been modified the TbUtil partition code will warn
  5248.      you about this. The TbUtil partition code also checks the RAM layout and
  5249.      informs you when it has changed. It does this every time you boot from
  5250.      your hard disk.
  5251.  
  5252.      TbUtil can replace infected and clean diskette bootsectors by a new
  5253.      bootsector, which has advantages over the standard bootsector. It has
  5254.      bootsector virus detection capabilities, it performs a sanity check, and
  5255.      it offers you the possibility to redirect the boot process to the hard
  5256.      disk without opening the diskette drive door.
  5257.  
  5258.  
  5259.      How to use TbUtil
  5260.  
  5261.      The TbUtil module contains several programs, which can be executed from
  5262.      the TbUtil menu or in case of an emergency from a TbUtil recovery
  5263.      diskette using the DOS command line. TbUtil allows some additional menu
  5264.      options. These options are discussed below. The corresponding command
  5265.      line parameters are listed in chapter 6 of this section.
  5266.  
  5267.  
  5268.      The system maintenance menu
  5269.  
  5270.      This menu contains the actual TbUtil program. The program takes care of
  5271.      saving, restoring or comparing the system configuration of your PC. The
  5272.      backup system configuration is stored on a diskette in a file with
  5273.      either a default name or a name you can specify yourself.
  5274.  
  5275. =>   Warning: You can only restore a system configuration datafile on the
  5276.      machine which created the datafile. If not, restoring such a file will
  5277.      make your PC inaccessible!
  5278.  
  5279.  
  5280.  
  5281.  
  5282.  
  5283.  
  5284.  
  5285.  
  5286.  
  5287.  
  5288.  
  5289.  
  5290.                                      III - 54
  5291.  
  5292.  
  5293. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5294.  
  5295.  
  5296.      +----Main menu-----+
  5297.      |  Confi+-----------TbUtil menu-----------+
  5298.      |  TbSet|  Syste+-------System maintenance-------+
  5299.      |  TbSca|  Immun|  Execute TbUtil                |
  5300.      |  TbUti|  Immun|  Describe this machine         |
  5301.      |  TbCLe|  Immun|  Save system configuration     |
  5302.      |  TBAV +-------|v Compare system configuration  |
  5303.      |  Documentation|  Restore system configuration  |
  5304.      |  Register TBAV|v process CMOS memory           |
  5305.      |  Quit and save|v process Partition code        |
  5306.      |  eXit (no save|v process Bootsector            |
  5307.      +---------------+--------------------------------+
  5308.  
  5309.  
  5310.      Execute TbUtil
  5311.  
  5312.      Before activating this option, you must select one of the optional
  5313.      functions: save, compare or restore the system configuration. Toggle to
  5314.      the desired option and type <ENTER>. A checkmark will indicate the
  5315.      selected option.
  5316.  
  5317.  
  5318.      Describe this machine 
  5319.  
  5320.      Enter a meaningful description of the machine. Enter something like "AT
  5321.      12MHz, 4Mb, room 12, Mr. Smith". You do NOT have to remember it, TbUtil
  5322.      will display it on the screen when comparing or restoring, but it helps
  5323.      you to verify that the data file belongs to the machine.
  5324.  
  5325.  
  5326.      Save system configuration 
  5327.  
  5328.      This option stores the partition table, bootsector and CMOS data area
  5329.      into the TbUtil data file. 
  5330.  
  5331. =>>  Attention! Since the PC is completely inaccessible to DOS if the parti-
  5332.      tion table gets damaged, it is HIGHLY RECOMMENDED to store both the
  5333.      TbUtil data file and the program TbUtil.Exe itself on a diskette! It is
  5334.      not nice if the partition table is destroyed and the only solution to
  5335.      the problem resides on the same inaccessible disk...
  5336.  
  5337.      When loading TbUtil from the command line you must specify a filename
  5338.      after the 'store' option. Using the TBAV menu, you may use the default
  5339.      filename 'TBUTIL.DAT'. If you own more than one PC, it is advisable to
  5340.      create one TbUtil diskette with all TbUtil data files of all your PC's
  5341.      on it. Use the extension of the file for PC identification, eg.:
  5342.  
  5343.           a:TbUtil.<number>
  5344.  
  5345.  
  5346.  
  5347.  
  5348.  
  5349.                                      III - 55
  5350.  
  5351.  
  5352. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5353.  
  5354.  
  5355.      Compare system configuration 
  5356.  
  5357.      This option enables you to check on a regular basis that everything is
  5358.      still OK. If you specify this option TbUtil will compare the information
  5359.      in the TbUtil data file against the partition table, bootsector and CMOS
  5360.      data area. It will also  show the comment stored in the data file. And
  5361.      of course, if you use this option you will also be guaranteed that the
  5362.      TbUtil data file is still readable.
  5363.  
  5364.  
  5365.      Restore system configuration 
  5366.  
  5367.      This option enables you to restore the partition table, bootsector, and
  5368.      CMOS data area. It will ask you to confirm that the data file belongs to
  5369.      the current machine. Finally it will restore the partition table,
  5370.      bootsector of the partition to be used to boot, and the CMOS data area.
  5371.  
  5372.  
  5373.      Process Partition code/Bootsector/CMOS memory
  5374.  
  5375.      TbUtil will by default restore the partition code, bootsector and CMOS
  5376.      if option 'restore' is specified. If you use one of the above mentioned
  5377.      options in combination with the option 'restore' TbUtil will restore
  5378.      just the items specified.
  5379.  
  5380.  
  5381.  
  5382.      The TbUtil menu
  5383.  
  5384.      Apart from the System maintenance menu, the TbUtil menu contains some
  5385.      useful programs to prevent bootsector virus infection or to remove these
  5386.      viruses.
  5387.  
  5388.      +----Main menu-----+
  5389.      |  Confi+-----------TbUtil menu-----------+
  5390.      |  TbSet|  System maintenance menu       >|
  5391.      |  TbSca|  Immunize/clean bootsector A:   |
  5392.      |  TbUti|  Immunize/clean bootsector B:   |
  5393.      |  TbCLe|  Immunize/clean partition code  |
  5394.      |  TBAV +---------------------------------+
  5395.      |  Documentation  >|
  5396.      |  Register TBAV   |
  5397.      |  Quit and save   |
  5398.      |  eXit (no save)  |
  5399.      +------------------+
  5400.  
  5401.  
  5402.      Immunize/clean diskette 
  5403.  
  5404.      You can use the 'immunize' program to clean diskettes infected by a
  5405.      bootsector virus or to replace the standard bootsector by a bootsector
  5406.      which has advantages over the original one:
  5407.  
  5408.                                      III - 56
  5409.  
  5410.  
  5411. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5412.  
  5413.  
  5414.      It has virus detection capabilities. The bootsector will check that it
  5415.      is still located on the correct place on the diskette, and that Int 13h
  5416.      and/or Int 40h are still located in system ROM. This makes it possible
  5417.      to detect even 'stealth' and bootsector viruses.
  5418.  
  5419.      The TBAV bootsector is able to load the system files if they are availa-
  5420.      ble on the disk, but if the DOS system files are not on the disk the
  5421.      TBAV bootsector will present a small menu and offers you two possibili-
  5422.      ties: retry the boot operation with another diskette, or to boot from
  5423.      the harddisk. If the user selects the latter, it is not required to open
  5424.      the diskette drive door.
  5425.  
  5426.  
  5427.      Immunize/clean hard disk 
  5428.  
  5429.      This is a very powerful option, which can be used to clean an infected
  5430.      partition table if there is no TbUtil data file. It replaces the exis-
  5431.      ting partition table code by a new partition routine containing some
  5432.      virus detection capabilities. The original partition code will be saved
  5433.      in a file. You have to execute TbUtil from a floppy drive or you have to
  5434.      specify the name of the file (the specified drive should be a diskette
  5435.      drive) to store the original partition code.
  5436.  
  5437.      If the original partition table is completely damaged and cannot be used
  5438.      to build a new one, TbUtil will scan the entire disk for information
  5439.      about the original disk layout. TbUtil will also search for TbUtil data
  5440.      files on the hard disk. It is however recommended to store the data file
  5441.      on a diskette, although it is a good idea to keep a copy of it on the
  5442.      hard disk. Just in case!
  5443.  
  5444.      If your system configuration changes, i.e. you update your DOS version,
  5445.      or change the amount of memory, you need to update the information
  5446.      stored in the immune partition as well. You can do this by using this
  5447.      option.
  5448.  
  5449.      In the unlikely event that the system does not boot properly, you can
  5450.      restore the original partition table using the TbUtil 'restore' option
  5451.      or by using the DOS 5+ 'FDISK /MBR' command (which will create a new
  5452.      partition table).
  5453.  
  5454.      If the new partition code works properly, you should make a back-up copy
  5455.      of it on a diskette using the TbUtil 'store' option.
  5456.  
  5457.  
  5458.      Command line options
  5459.  
  5460.      TbUtil recognizes option-characters and option-words. The words are
  5461.      easier to remember, and they will be used in this manual for convenien-
  5462.      ce.
  5463.  
  5464.  
  5465.  
  5466.  
  5467.                                      III - 57
  5468.  
  5469.  
  5470. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5471.  
  5472.  
  5473.      option     parameter   short explanation
  5474.      ------     ---------   ----  --------------------
  5475.  
  5476.      immunize   <drive>       im  Immunize/Clean boot/MBR of <drive>
  5477.      getboot    <drive>       gb  Save bootsector into file
  5478.      store      [<filename>]  st  Store system information
  5479.      restore    [<filename>]  re  Restore system information
  5480.      compare    [<filename>]  co  Compare system information
  5481.      Sub-options of option 'Immunize':
  5482.      norepeat                 nr  Do not ask for next diskette
  5483.      nomem                    nm  Do not check for amount of RAM
  5484.      batch                    ba  Do not prompt to insert a disk
  5485.      Sub-options of option 'Store':
  5486.      description<descr.>      de  Add description to data file
  5487.      Sub-options of option 'Restore':
  5488.      part                     pt  Restore partition table
  5489.      boot                     bo  Restore bootsector of HD
  5490.      cmos                     cm  Restore CMOS
  5491.  
  5492.  
  5493.      Below, the command line options are explained briefly.
  5494.  
  5495.      immunize diskette <drive> (im)
  5496.      You can use the 'immunize' program to clean diskettes infected by a
  5497.      bootsector virus or to replace the standard bootsector by a bootsector
  5498.      which has advantages over the original one: 
  5499.  
  5500.      -    It has virus detection capabilities. The bootsector will check that
  5501.           it is still located on the correct place on the diskette, and that
  5502.           Int 13h and/or Int 40h are still located in system ROM. This makes
  5503.           it possible to detect even 'stealth' and bootsector viruses.
  5504.  
  5505.      -    The TBAV bootsector is able to load the system files if they are
  5506.           available on the disk, but if the DOS system files are not on the
  5507.           disk the TBAV bootsector will present a small menu and offers you
  5508.           two possibilities: retry the boot operation with another diskette,
  5509.           or to boot from the harddisk. If the user selects the latter, it is
  5510.           not required to open the diskette drive door.
  5511.  
  5512.  
  5513.      Immunize c: (im c:)
  5514.      This is a very powerful option, which can be used to clean an infected
  5515.      partition table if there is no TbUtil data file. It replaces the exis-
  5516.      ting partition table code by a new partition routine containing some
  5517.      virus detection capabilities. The original partition code will be saved
  5518.      in a file. You have to execute TbUtil from a floppy drive or you have to
  5519.      specify the name of the file (the specified drive should be a diskette
  5520.      drive) to store the original partition code.
  5521.  
  5522.      If the original partition table is completely damaged and cannot be used
  5523.      to build a new one, TbUtil will scan the entire disk for information
  5524.      about the original disk layout. TbUtil will also search for TbUtil data
  5525.  
  5526.                                      III - 58
  5527.  
  5528.  
  5529. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5530.  
  5531.  
  5532.      files on the hard disk. It is however recommended to store the data file
  5533.      on a diskette, although it is a good idea to keep a copy of it on the
  5534.      hard disk. Just in case!
  5535.  
  5536.      If your system configuration changes, i.e. you update your DOS version,
  5537.      or change the amount of memory, you need to update the information
  5538.      stored in the immune partition as well. You can do this by using this
  5539.      option. In the unlikely event that the system does not boot properly,
  5540.      you can restore the original partition table using the TbUtil 'restore'
  5541.      option or by using the DOS 5+ 'FDISK /MBR' command (which will create a
  5542.      new partition table). If the new partition code works properly, you
  5543.      should make a back-up copy of it on a diskette using the TbUtil 'store'
  5544.      option.
  5545.  
  5546.      getboot <drive> (gb)
  5547.      With this option you can copy the bootsector of the specified drive into
  5548.      a file.
  5549.  
  5550.      store [<filename>] (st)
  5551.      This option stores the partition table, bootsector and CMOS data area
  5552.      into the TbUtil data file. 
  5553.  
  5554. =>>  Attention! Since the PC is completely inaccessible to DOS if the parti-
  5555.      tion table gets damaged, it is HIGHLY RECOMMENDED to store both the
  5556.      TbUtil data file and the program TbUtil.Exe itself on a diskette! It is
  5557.      not nice if the partition table is destroyed and the only solution to
  5558.      the problem resides on the same inaccessible disk...
  5559.  
  5560.      When loading TbUtil from the command line you must specify a filename
  5561.      after the 'store' option. Using the TBAV menu, you may use the default
  5562.      filename 'TBUTIL.DAT'. If you own more than one PC, it is advisable to
  5563.      create one TbUtil diskette with all TbUtil data files of all your PC's
  5564.      on it. Use the extension of the file for PC identification, eg.:
  5565.      a:TbUtil.<number>
  5566.  
  5567.      restore [<filename>] (re)
  5568.      This option enables you to restore the partition table, bootsector, and
  5569.      CMOS data area. It will ask you to confirm that the data file belongs to
  5570.      the current machine. Finally it will restore the partition table,
  5571.      bootsector of the partition to be used to boot, and the CMOS data area.
  5572.  
  5573.      compare [<filename>] (co)
  5574.      This option enables you to check on a regular basis that everything is
  5575.      still OK. If you specify this option TbUtil will compare the information
  5576.      in the TbUtil data file against the partition table, bootsector and CMOS
  5577.      data area. It will also  show the comment stored in the data file. And
  5578.      of course, if you use this option you will also be guaranteed that the
  5579.      TbUtil data file is still readable.
  5580.  
  5581.      norepeat (nr) 
  5582.      TbUtil will prompt you for next diskette after you immunized a diskette.
  5583.      With option 'norepeat' you can disable this.
  5584.  
  5585.                                      III - 59
  5586.  
  5587.  
  5588. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5589.  
  5590.  
  5591.      nomem (nm)
  5592.      If you specify this option when you are immunizing your partition code,
  5593.      the partition code will skip the RAM check while booting. This is
  5594.      necessary for some systems which change the memory setup during the boot
  5595.      process.
  5596.  
  5597.      batch (ba)
  5598.      If you specify this option when you are immunizing diskettes, TbUtil
  5599.      will not prompt you to insert a disk but assume that there is a disk
  5600.      inserted.
  5601.  
  5602.      description <descr.> (de)
  5603.      Enter a meaningful description of the machine. Enter something like "AT
  5604.      12MHz, 4Mb, room 12, Mr. Smith". You do NOT have to remember it, TbUtil
  5605.      will display it on the screen when comparing or restoring, but it helps
  5606.      you to verify that the data file belongs to the machine.
  5607.  
  5608.      part (pt)
  5609.      boot (bo)
  5610.      cmos (cm)
  5611.  
  5612.      TbUtil will by default restore the partition code, bootsector and CMOS
  5613.      if option 'restore' is specified. If you use one of the above mentioned
  5614.      options in combination with the option 'restore' TbUtil will restore
  5615.      just the items specified.
  5616.  
  5617.  
  5618.      Examples
  5619.           TbUtil store
  5620.           TbUtil st
  5621.           TbUtil store A:TbUtil.Dat
  5622.           TbUtil store A:TbUtil.Dat description = "Test machine"
  5623.           TbUtil compare A:TbUtil.Dat
  5624.           TbUtil restore A:TbUtil.Dat part cmos
  5625.           TbUtil immunize A:
  5626.           TbUtil immunize C: nomem
  5627.           Type A:TbUtil.Dat
  5628.  
  5629.  
  5630.      Using the anti-virus partition
  5631.  
  5632.      If you install the Thunderbyte partition code (TbUtil immunize), you
  5633.      will see the following while booting a clean system:
  5634.  
  5635.  
  5636.           Thunderbyte anti-virus partition v6.31 (C) 1995 Thunderbyte BV.
  5637.  
  5638.           Checking bootsector CRC -> OK!
  5639.           Checking available RAM -> OK!
  5640.           Checking INT 13h -> OK!
  5641.  
  5642.  
  5643.  
  5644.                                      III - 60
  5645.  
  5646.  
  5647. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5648.  
  5649.  
  5650.      If there is a virus in the bootsector or partition table you will see
  5651.      this:
  5652.  
  5653.           Thunderbyte anti-virus partition v6.31 (C) 1995 Thunderbyte BV.
  5654.  
  5655.           Checking bootsector CRC -> OK!
  5656.           Checking available RAM -> Failed!
  5657.  
  5658.           System might be infected. Continue? (N/Y)
  5659.  
  5660.  
  5661.      Some other messages that can be displayed are "No system.", which means
  5662.      that there is no active partition on the disk, and "Disk error" of which
  5663.      the meaning is obvious.
  5664.  
  5665.  
  5666.      Using the TbUtil diskette
  5667.  
  5668.      Take a new diskette, format it as a bootable diskette (eg. by using the
  5669.      dos 'format /s' command). Copy the TbUtil files onto the diskette:
  5670.  
  5671.           copy tbutil.* a:
  5672.  
  5673.      The TbUtil files you need are:
  5674.           tbutil.exe
  5675.           tbutil.lng
  5676.  
  5677.  
  5678.      Trouble-Shooting
  5679.  
  5680.      In case of an emergency, eg. a damaged or infected partition table, you
  5681.      should boot from the TbUtil diskette. Subsequently, you start the TbUtil
  5682.      program, using the 'immunize' option:
  5683.  
  5684.           a:\tbutil immunize c:
  5685.  
  5686.  
  5687. 6.2. TbLog
  5688.  
  5689.      The purpose of TbLog
  5690.  
  5691.      TbLog is a TBAV log file utility. It writes a record into a log file
  5692.      whenever one of the resident TBAV utilities pops up with an alert
  5693.      message. Also when TbScan detects a virus a record will be written.
  5694.  
  5695.      This utility is primarily intended for network users. If all workstati-
  5696.      ons have TbLog installed and configured to maintain the same log file,
  5697.      the supervisor is able to keep track of what is going on easily. When a
  5698.      virus enters the network he is able to determine which machine introdu-
  5699.      ced the virus, and he can take action in time.
  5700.  
  5701.  
  5702.  
  5703.                                      III - 61
  5704.  
  5705.  
  5706. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5707.  
  5708.  
  5709.      A TbLog record consists of the timestamp on which the event took place,
  5710.      the name of the machine on which the event occured, and an informative
  5711.      message about what happenend and which files were involved. The informa-
  5712.      tion is very comprehensive and takes just one line.
  5713.  
  5714.  
  5715.      How to use TbLog
  5716.  
  5717.      Just like the other TBAV utilities TbLog can be loaded in the Config.Sys
  5718.      or AutoExec.Bat file, after the TbDriver invokation.
  5719.  
  5720.      TbLog should be installed on every workstation. If you want to use all
  5721.      workstations to maintain the same log file, it is recommended to load
  5722.      TbLog after the network has been started.
  5723.  
  5724.      TbLog will by default maintain a log file with the name TbLog.Log in the
  5725.      TBAV directory. If you want to use another filename or in on another
  5726.      disk or directory you can specify a filename on the command line of
  5727.      TbLog. In a network environment it is highly recommended to put the log
  5728.      file on a server disk.
  5729.  
  5730.  
  5731.      Command line options
  5732.  
  5733.      It is possible to specify options on the command line. The upper five
  5734.      options are always available, the other options are available only if
  5735.      TbLog is not memory resident.
  5736.  
  5737.      option   parameter   short explanation
  5738.      ----------------------------------------------------
  5739.      help                  ?    display this helpscreen
  5740.      remove                r    remove TbLog from memory
  5741.      on                    e    enable TbLog
  5742.      off                   d    disable TbLog
  5743.      test                  t    log test message
  5744.  
  5745.      machine = <machine>   m    name of your machine
  5746.      secure                s    do not allow removal
  5747.  
  5748.  
  5749.      help (?)
  5750.      If you specify this option TbLog will show you the brief help as shown
  5751.      above.
  5752.  
  5753.      off (d)
  5754.      If you specify this option TbLog will be disable, but it will remain in
  5755.      memory.
  5756.  
  5757.      on (e)
  5758.      If you use this option TbLog will be activated again after you disabled
  5759.      it with the 'off' option.
  5760.  
  5761.  
  5762.                                      III - 62
  5763.  
  5764.  
  5765. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.               SECTION III
  5766.  
  5767.  
  5768.      remove (r)
  5769.      This option can be used to remove the resident part of TbLog from your
  5770.      system's memory.  All memory used by TbLog will be released. Unfortuna-
  5771.      tely, the removal of a TSR (like TbLog) is not always possible.  TbLog
  5772.      checks whether it is safe to remove the resident part from memory. If it
  5773.      is not safe it just disables TbLog. A TSR can not be removed if another
  5774.      TSR has been started after it. If this happens with TbLog it will
  5775.      completely disable itself.
  5776.  
  5777.      test (t)
  5778.      This option can be used to record a test message. If you use option
  5779.      'test' at the initial invocation of TbLog, it will record the time and
  5780.      machinename into the log file. If you use the 'test' option afterwards
  5781.      it will just put a test message in the log file.
  5782.  
  5783.      machine (m)
  5784.      With this option you can specify the name of the machine on which TbLog
  5785.      is loaded. This machine name will appear in the log file. On NetBios
  5786.      compatible machines TbLog will by default use the network machine name.
  5787.      On other networks - such as Novell - you have to enter the network name
  5788.      on the TbLog command line.
  5789.  
  5790.      secure (s)
  5791.      If you specify this option it is not possible anymore to use options
  5792.      'off' and 'remove'.
  5793.  
  5794.  
  5795.      Examples:
  5796.           C:\TBAV\TbLog f:\security\Tblog.log secure machine=DESK3
  5797.      or:
  5798.           Device=c:\TBAV\TbLog.Exe x:\logs\tblog.log machine=JOHN test
  5799.  
  5800.  
  5801.  
  5802.  
  5803.  
  5804.  
  5805.  
  5806.  
  5807.  
  5808.  
  5809.  
  5810.  
  5811.  
  5812.  
  5813.  
  5814.  
  5815.  
  5816.  
  5817.  
  5818.  
  5819.  
  5820.  
  5821.                                      III - 63
  5822.  
  5823.  
  5824. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  5825.  
  5826.  
  5827. SECTION IV. ADVANCED USER INFORMATION
  5828.  
  5829.  
  5830. 1. Memory requirements
  5831.  
  5832.      Free memory needed:
  5833.                               min.                min.
  5834.                               to be               after
  5835.                               loaded:             termination:
  5836.  
  5837.      TbScan                   200 Kb
  5838.      TbScanX                  10 Kb               800 bytes
  5839.      TbCheck                  4 Kb                600 bytes
  5840.      TbUtil                   64 Kb
  5841.      TbClean                  96 Kb
  5842.  
  5843.      TbMem                    4 Kb                600 bytes
  5844.      TbFile                   5 Kb                1 Kb
  5845.      TbDisk                   4 Kb                800 bytes
  5846.      TbDriver                 5 Kb                3 Kb
  5847.      TbLog                    5 Kb                1 Kb
  5848.  
  5849.  
  5850.      If you decide to use a log file TbScan will need an additional 16 Kb of
  5851.      memory for the log file buffer. If TbScan uses its own built-in file
  5852.      system it uses additional memory to keep the FAT in memory. Note that
  5853.      the memory requirements are independent of the number of signatures. The
  5854.      current memory requirements are adequate to manage at least 2500 signa-
  5855.      tures.
  5856.  
  5857.      The amount of memory TbScanX requires depends on the number of signatu-
  5858.      res. With all features enabled TbScanX uses 30 Kb of memory when scan-
  5859.      ning for 1400 family signatures. If you enable swapping TbScanX normally
  5860.      uses only 1Kb of memory. You can swap to EMS and XMS memory. Of course
  5861.      the remaining kilobyte of TbScanX can be loaded in upper memory.
  5862.  
  5863.      In the heuristic cleaning mode TbClean needs much more memory, depending
  5864.      on the size of the infected file. TbClean can also use expanded memory
  5865.      (EMS).
  5866.  
  5867.  
  5868.      Reducing memory requirements
  5869.  
  5870.      Most PC users try to maintain as much free DOS memory as possible. The
  5871.      memory resident TBAV utilities (TbScanX, TbCheck, TbMem, TbFile, TbDisk
  5872.      and TbDriver) are designed to use only a little amount of DOS memory. To
  5873.      decrease the memory requirements of these utilities even further do the
  5874.      following:
  5875.  
  5876.      Load the program from within the Config.Sys file. If loaded as a device
  5877.      driver it has no Program Segment Prefix (PSP), which saves 256 bytes for
  5878.      each TBAV utility.
  5879.  
  5880.                                       IV - 1
  5881.  
  5882.  
  5883. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  5884.  
  5885.  
  5886.      If you load the TBAV utilities from within the Autoexec.Bat file, load
  5887.      them before establishing environment variables. DOS maintains a list of
  5888.      environment variables for every resident program, so keep this list
  5889.      small while installing TSRs. Once all TSRs are installed you can define
  5890.      all environment variables without affecting the memory requirements of
  5891.      the TSRs.
  5892.  
  5893.      By using one of the options 'ems' or 'xms' TbScanX swaps itself to non-
  5894.      DOS memory, leaving only 1 Kb of code in DOS memory. Swapping to expan-
  5895.      ded memory ('ems') is preferred. 
  5896.  
  5897.      If you have DOS 5 or higher try to load the program into an upper memory
  5898.      block using the "loadhigh" or "devicehigh" commands. It is recommended
  5899.      to enable swapping also to limit the usage of upper memory.
  5900.  
  5901.      Use one of the processor specific versions of the relevant TBAV utility.
  5902.      They all consume less memory than the generic versions. Processor
  5903.      optimized versions are available on any ThunderBYTE support BBS.
  5904.  
  5905.      Consider the following memory saving options:
  5906.      TbDriver:      NoStack
  5907.      TbMem:         NoCancel
  5908.      TbScanX:       NoBoot, EMX, XMS, wild
  5909.  
  5910.  
  5911.  
  5912.  
  5913.  
  5914.  
  5915.  
  5916.  
  5917.  
  5918.  
  5919.  
  5920.  
  5921.  
  5922.  
  5923.  
  5924.  
  5925.  
  5926.  
  5927.  
  5928.  
  5929.  
  5930.  
  5931.  
  5932.  
  5933.  
  5934.  
  5935.  
  5936.  
  5937.  
  5938.  
  5939.                                       IV - 2
  5940.  
  5941.  
  5942. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  5943.  
  5944.  
  5945. 2. TbSetup
  5946.  
  5947.  
  5948. 2.1. Anti-Vir.Dat design considerations
  5949.  
  5950.      ThunderBYTE Anti-Virus expects every directory on your system with
  5951.      executable files to have its own Anti-Vir.Dat file. Some other anti-
  5952.      virus products maintain a somewhat similar 'fingerprint' list of all
  5953.      executable files, but in one large file rather than a separate file in
  5954.      every directory. TBAV contains a separate file in every directory
  5955.      instead of one file with all file information because of the following:
  5956.  
  5957.      One file in every directory will ease maintenance. If you want to remove
  5958.      a complete product, the accompanying Anti-Vir.Dat file can be removed as
  5959.      well. 
  5960.  
  5961.      It will consume less disk space because path information need not to be
  5962.      stored in the information file. 
  5963.  
  5964.      The TBAV utilities will perform faster because they do not have to
  5965.      search through a huge file to locate the information of one specific
  5966.      file.
  5967.  
  5968.      Installation is easier and more reliable in network environments. On
  5969.      networks it is not unusual that the same files have different drive ID's
  5970.      on different workstations. In case of only one information file the
  5971.      drive-ID's should be stored as well, so every workstation should main-
  5972.      tain its own list. The supervisor would easily lose control in this
  5973.      situation.
  5974.  
  5975.  
  5976. 2.2. Format of TbSetup.Dat
  5977.  
  5978.      Editing the TbSetup.Dat file is useful to TBAV site installation (see
  5979.      IV-8). Therefore, some information on the format of this file is neces-
  5980.      sary. The format of the TbSetup.Dat file is very simple. Empty lines, or
  5981.      lines starting with a semi-colon (';') or percent symbol, are either
  5982.      ignored or treated as comment lines. The lines with a preceding percent
  5983.      symbol are also displayed in TbSetup's upper window.
  5984.  
  5985.      Every entry in the TbSetup.Dat file has four items:
  5986.  
  5987.      The filename. The filename must be written in capital letters and
  5988.      without spaces.
  5989.  
  5990.      The length of the file in hexadecimal notation. This field may contain a
  5991.      single asterisk ('*') if an exact filelength match is not required.
  5992.  
  5993.      The file's 32-bit CRC in hexadecimal notation. A single asterisk is
  5994.      allowed if an exact checksum match is not required. 
  5995.  
  5996.  
  5997.  
  5998.                                       IV - 3
  5999.  
  6000.  
  6001. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6002.  
  6003.  
  6004.      The hexadecimal number representing flags that should be set when the
  6005.      listed file is found on the system.
  6006.  
  6007.      The rest of the line may be used for a brief comment.
  6008.  
  6009.      You may use the following flags:
  6010.  
  6011.      bit 0  (0001)  Do not perform heuristic analysis
  6012.      bit 1: (0002)  Ignore CRC changes (self-modifying file)
  6013.      bit 2: (0004)  Scan for all signatures (lan remote boot file) 
  6014.      bit 3: (0008)  Do not change read-only attribute of this file 
  6015.      bit 4: (0010)  The program stays resident in memory
  6016.      bit 5: (0020)  The program performs direct disk access
  6017.      bit 6: (0040)  Program is allowed to remove read-only attributes
  6018.      bit 15:(8000)  Interrupt rehook required for TbDriver.Exe
  6019.  
  6020.  
  6021.      This is what the entries in TbSetup.Dat look like:
  6022.  
  6023.           ; filename   Length 32-bit CRC  Flags  Comment
  6024.  
  6025.           ; Files that trigger the heuristic alarm of TbScan:
  6026.           4DOS.COM     19FEA         *    0001   ;4Dos 4.0a
  6027.           AFD.COM      0FEFE  4B351A86    0001   ;AFD debugger
  6028.           ARGV0FIX.COM 001D8  431E70C0    0001   ;Argv[0]fix
  6029.           EXE2COM.EXE  00BEA  49276F89    0001   ;Exe to Com conv. utility
  6030.           KILL.EXE     00632  74D41811    0001   ;PcTools 6.0 utility
  6031.           WATCH.COM    003E1  2353625D    0001   ;TSR monitoring utility
  6032.  
  6033.           ; Files that need to be scanned completely, for ALL viruses:
  6034.           NET$DOS.SYS      *         *    0004   ;Disk image Novell boot
  6035.  
  6036.           ; Files without fixed checksum due to internal config area's:
  6037.           Q.EXE            *         *    000A    ;Qedit (all versions)
  6038.           TBCONFIG.COM     *         *    000A    ;all versions
  6039.  
  6040.  
  6041.      Defining new entries
  6042.  
  6043.      If you have any files that should be included in the list, please let us
  6044.      know! We would like to receive a copy to enhance our products and keep
  6045.      TbSetup.Dat up to date. Candidates for inclusion would be any program
  6046.      that triggers the heuristic analysis of TbScan. Whenever you choose
  6047.      'V)alidate program' in the TbScan message window, you will find that on
  6048.      subsequent occasions TbSetup displays the value '0001' in the flags
  6049.      field. If your company has many files like this installed on multiple
  6050.      machines, you may want to include these files in the TbSetup.Dat file
  6051.      yourself. In order to do that execute TbSetup for the file in question
  6052.      and make a note of its filelength and 32-bit CRC, as displayed on the
  6053.      screen. Then edit the TbSetup.Dat file entering the exact filename, the
  6054.      file length and the CRC number, plus the number of any flags you wish to
  6055.  
  6056.  
  6057.                                       IV - 4
  6058.  
  6059.  
  6060. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6061.  
  6062.  
  6063.      set for that file. If you now use TbSetup on another machine it will set
  6064.      the appropriate flags automatically.
  6065.  
  6066. =>   Note:You may manually set or clear a flag field value when executing
  6067.      TbSetup at the DOS prompt with option 'set' and 'reset' as follows:
  6068.  
  6069.           TBSETUP TEST.EXE SET=0001
  6070.  
  6071.  
  6072. 2.3. TBAV site installation
  6073.  
  6074.      If you have to install the TBAV utilities on a lot of machines in one
  6075.      company, it would be tedious to invoke for instance every single TSR and
  6076.      disk utility on each machine in order to 'teach' TBAV which programs are
  6077.      valid and which are not. Fortunately, this is not necessary. In the
  6078.      present section, three examples are presented on how to simplify instal-
  6079.      lation on several machines.
  6080.  
  6081.      1.   If a resident utility named, for instance, TSRUTIL.EXE is used
  6082.           throughout the company, you can predefine permission by using
  6083.           TbSetup to determine the length and CRC of the program. Now put the
  6084.           name of this program along with the other information in the file
  6085.           TbSetup.Dat and assign the value '0010' to it. 
  6086.  
  6087.      Example:
  6088.           TSRUTIL.EXE  01286  E387AB21  0010  ;Our TSR utility
  6089.  
  6090.  
  6091.      2.   If a disk utility named, for instance, DISKUTIL.EXE is used throug-
  6092.           hout the company, you can predefine permission by using TbSetup to
  6093.           determine the length and CRC of the program. Now put the name of
  6094.           this program along with the other information in the file TbSetup.
  6095.           dat and assign the value '0020' to it.
  6096.  
  6097.      Example:
  6098.           DISKUTIL.EXE  01286  E387AB21  0020  ;Our DISK utility
  6099.  
  6100.      If you now execute TbSetup on every machine (you have to do this anyway)
  6101.      it will recognize this utility and it will set the disk access permissi-
  6102.      on flag for TbMem / TbDisk automatically.
  6103.  
  6104.      3.   If a utility named, for instance, UTIL.EXE is used throughout the
  6105.           company which causes TbScan to give false positives, you can
  6106.           predefine TbSetup to avoid heuristic scanning of the relevant
  6107.           program. Put the name of this program along with the other informa-
  6108.           tion in the file TbSetup.Dat and assign the value '0001' to it.
  6109.  
  6110.  
  6111.  
  6112.  
  6113.  
  6114.  
  6115.  
  6116.                                       IV - 5
  6117.  
  6118.  
  6119. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6120.  
  6121.  
  6122.      Example:
  6123.           UTIL.EXE  01286  E387AB21  0001  ;Our utility
  6124.  
  6125.      If you now execute TbSetup on every machine (you have to do this anyway)
  6126.      it will recognize this utility and TbScan will not perform heuristic
  6127.      scanning.
  6128.  
  6129.      Also consult the TbSetup.Dat file.
  6130.  
  6131.  
  6132.  
  6133.  
  6134.  
  6135.  
  6136.  
  6137.  
  6138.  
  6139.  
  6140.  
  6141.  
  6142.  
  6143.  
  6144.  
  6145.  
  6146.  
  6147.  
  6148.  
  6149.  
  6150.  
  6151.  
  6152.  
  6153.  
  6154.  
  6155.  
  6156.  
  6157.  
  6158.  
  6159.  
  6160.  
  6161.  
  6162.  
  6163.  
  6164.  
  6165.  
  6166.  
  6167.  
  6168.  
  6169.  
  6170.  
  6171.  
  6172.  
  6173.  
  6174.  
  6175.                                       IV - 6
  6176.  
  6177.  
  6178. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6179.  
  6180.  
  6181. 3. TbScan
  6182.  
  6183. 3.1. Heuristic scanning
  6184.  
  6185.      TbScan is not just a signature scanner. It also disassembles the file
  6186.      being processed, for the following purposes:
  6187.  
  6188.      1)   By disassembling the file the scanner can restrict itself to the
  6189.           area of the file where the virus might reside, reducing false
  6190.           alarms and speeding up the process.
  6191.  
  6192.      2)   It makes it possible to use the algorithmic detection method on
  6193.           encrypted viruses whose signatures would otherwise remain invisible
  6194.           to the scanner.
  6195.  
  6196.      3)   And it makes it possible to detect suspicious instruction sequen-
  6197.           ces.
  6198.  
  6199.      The detection of suspicious instruction sequences is named 'heuristic
  6200.      scanning'. It is a very powerful feature that enables you to detect new
  6201.      or modified viruses and to verify the results of the signature scan. You
  6202.      no longer have to rely on the scanner's publisher having the same virus
  6203.      as you might have. In normal cases a scanner can only find a virus if
  6204.      the scanner's publisher did have a sample of that virus, in order to
  6205.      make a suitable signature. With heuristic scanning a signature is no
  6206.      longer required, enabling the scanner to detect yet unknown viruses. You
  6207.      should not underestimate the importance of heuristic scanning, since
  6208.      every month at least 50 new viruses are reported. It is very unlikely
  6209.      that a publisher is the first one to get these new viruses...
  6210.  
  6211.  
  6212.      Heuristic level 1                       Heuristic level 2
  6213.      ------------------------------------------------------------
  6214.      Always enabled                          Only with option 'heuris
  6215.                                              tic' or after a virus has been
  6216.                                              found. 
  6217.      Detects 50% of the unknown viruses.     Detects 90% of the viruses
  6218.      Almost never causes false alarms.       Causes a few false alarms.
  6219.      Displays 'Probably infected'            Displays 'Might be infec
  6220.                                              ted'
  6221.  
  6222.  
  6223.      TEST.EXE <scanning...>         OK  (no flags)
  6224.      TEST.EXE <scanning...> R       OK  (nothing serious)
  6225.      TEST.EXE <scanning...> FRM         might be infected by unknown virus
  6226.      TEST.EXE <scanning...> FRALM#      probably infected by unknown virus  
  6227.  
  6228.      How does heuristic scanning actually work? Every program contains
  6229.      instructions for the PC's processor. By looking into the file's contents
  6230.      and by interpreting the instructions TbScan is able to detect the
  6231.      purpose of these instructions. If the purpose seems to be to format a
  6232.      disk, or to infect a file, TbScan issues a warning. There are a lot of
  6233.  
  6234.                                       IV - 7
  6235.  
  6236.  
  6237. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6238.  
  6239.  
  6240.      instruction sequences which are very common for viruses, but very
  6241.      uncommon for normal programs. Every suspicious instruction sequence is
  6242.      assigned to a character: a heuristic flag. Every heuristic flag denotes
  6243.      a score. If the total score exceeds a predefined limit, TbScan assumes
  6244.      the file contains a virus. 
  6245.  
  6246.      There are actually two predefined limits: the first one is quite sensi-
  6247.      tive and can be reached by some normal innocent programs. If this limit
  6248.      is reached, TbScan highlights the heuristic flags that are displayed on
  6249.      the screen and increases the 'suspected items' counter. TbScan does not
  6250.      indicate the existence of a virus, unless you have specified the 'heu-
  6251.      ristic' option. If you do have specified this option, TbScan tells you
  6252.      the file 'Might be infected by an unknown virus'. 
  6253.  
  6254.      The second heuristic limit will be triggered by a lot of viruses, but
  6255.      not by normal programs. If this limit is reached TbScan tells you that
  6256.      the file is 'Probably infected by an unknown virus.'
  6257.  
  6258. =>   Note: TbScan performs heuristic analysis only nearby the entry-point of
  6259.      a file. Therefore, TbScan does not detect direct writes to disk by some
  6260.      disk utilities nor does TbScan detect some programs as TSR programs.
  6261.      This is just the result of a specific approach to minimize false alarms.
  6262.      In case of a virus, the offending instructions are always nearby the
  6263.      entry-point (except when the virus is over 10Kb in size) so TbScan will
  6264.      detect suspicious phenomenons in these situations anyway. 
  6265.  
  6266.  
  6267. 3.2. Integrity checking
  6268.  
  6269.      TbScan will perform integrity checking while scanning. You have to use
  6270.      TbSetup to generate the Anti-Vir.Dat files. Once these files exist on
  6271.      your system TbScan will check that every file being scanned matches the
  6272.      information maintained in the Anti-Vir.Dat files. If a virus infects a
  6273.      file, the maintained information will not match anymore with the now
  6274.      changed file, and TbScan will inform you about this. There are no
  6275.      (command line) options to enable this feature: TbScan will perform
  6276.      integrity checking automatically if it detects the Anti-Vir.Dat files.
  6277.      Note that TbScan only reports file changes that could indicate a virus.
  6278.      Internal configuration areas of program files may also change, but
  6279.      TbScan does normally not report this. However, if a file gets infected
  6280.      with any virus -known or unknown - the vital information will change and
  6281.      TbScan will indeed report it to you!
  6282.  
  6283.      It is however possible that the checked file changes itself or changes
  6284.      frequently due to another cause. In this case you might want to exclude
  6285.      the program from integrity checking to avoid future false alarms. TbScan
  6286.      will offer you an additional menu option: 'V)alidate program'. For more
  6287.      information about this menu option consult 'Program validation' (page 6
  6288.      of this section).
  6289.  
  6290.  
  6291.  
  6292.  
  6293.                                       IV - 8
  6294.  
  6295.  
  6296. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6297.  
  6298.  
  6299. 3.3. Program validation
  6300.  
  6301.      This chapter only applies if you use TbSetup to generate the Anti-
  6302.      Vir.Dat records. Without these records program validation is not an
  6303.      option.
  6304.  
  6305.      TbScan will perform as intended on most programs. There are some pro-
  6306.      grams, however, that require special attention in order to avoid false
  6307.      alarms. Most of these programs are recognized automatically by the
  6308.      TbSetup program. Nevertheless it is certainly possible your PC contains
  6309.      some program files which trigger the heuristic alarm of TbScan and/or
  6310.      programs files which change frequently.
  6311.  
  6312.      If an 'infection' has been found with the heuristic analysis or integri-
  6313.      ty checking only and if there is an Anti-Vir.Dat record available,
  6314.      TbScan offers an additional option in its virus-alert window:  
  6315.  
  6316.           'V)alidate program'
  6317.  
  6318.      If you are convinced that the indicated program does not contain a
  6319.      virus, you can press 'V' to set a flag in the program's record. This
  6320.      makes it possible to avoid future false alarms.
  6321.  
  6322.      There are two validation modes. If TbScan alarms you due to a file
  6323.      change, the validation applies to future file changes only. If the alarm
  6324.      is due to heuristic analysis, the validation only applies to heuristic
  6325.      results. If the file is excluded from heuristic analysis the file will
  6326.      still be checksummed.  If the file is excluded from integrity checking
  6327.      TbScan will still perform heuristic analysis on the file.
  6328.  
  6329. =>   Note: if you replaced a file (software upgrade) and you did not use
  6330.      TbSetup, TbScan will pop-up its virus alert window to inform you about
  6331.      the file change. Do not select the validation option in this case,
  6332.      because this would exclude the file for future integrity checking. You
  6333.      should abort TbScan and execute TbSetup on the changed file(s) instead.
  6334.  
  6335.  
  6336. 3.4. The algorithms
  6337.  
  6338.      When TbScan processes a file it will display either 'Looking', 'Chec-
  6339.      king', 'Tracing', 'Scanning', 'Decrypting' or 'Skipping'.
  6340.  
  6341.      Looking
  6342.  
  6343.      With 'Looking' TbScan indicates it has successfully located the entry
  6344.      point of the program in one step. The program code has been identified
  6345.      so TbScan knows where to search without the need of additional analysis.
  6346.      'Looking' will be used on most known software.
  6347.  
  6348.  
  6349.  
  6350.  
  6351.  
  6352.                                       IV - 9
  6353.  
  6354.  
  6355. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6356.  
  6357.  
  6358.      Checking
  6359.  
  6360.      'Checking' indicates TbScan has successfully located the entry point of
  6361.      the program, and is scanning a frame of about 2Kb around the entry
  6362.      point. If the file is infected, the virus' signature will be located in
  6363.      this area. 'Checking' is a very fast and reliable scan algorithm.
  6364.      Checking will be used on most unknown software.
  6365.  
  6366.      Tracing
  6367.  
  6368.      'Tracing' means that TbScan has successfully traced a chain of jumps or
  6369.      calls while locating the entry-point of the program, and is scanning a
  6370.      frame of about 2Kb around this location. If the file has been infected,
  6371.      the signature of the virus will be located in this area. 'Tracing' is a
  6372.      fast and reliable scan algorithm. Tracing will be primarily used for
  6373.      TSR-type COM files. Most viruses will force TbScan to use 'Tracing'.
  6374.  
  6375.      Scanning
  6376.  
  6377.      TbScan is scanning the entire file (except for the exe-header which
  6378.      cannot contain any viral code). This algorithm will be used if 'Look-
  6379.      ing', 'Checking' or 'Tracing' can't be used safely. This is the case
  6380.      when the entry-point of the program contains other jumps and calls to
  6381.      code located outside the scanning frame, or when the heuristic analyzer
  6382.      found something that should be investigated more thoroughly. 'Scanning'
  6383.      is a slow algorithm. Since it processes almost the entire file, inclu-
  6384.      ding data areas, false alarms are more likely to occur. The 'Scanning'
  6385.      algorithm will be used while scanning bootsectors, SYS and BIN files.
  6386.  
  6387.      Decrypting
  6388.  
  6389.      TbScan detected that the file is encrypted, and decrypts it to be able
  6390.      to 'look inside'. TbScan performs signature scanning and heuristic
  6391.      analysis on the decrypted code since that is very reliable and also
  6392.      reveals polymorphic viruses.
  6393.  
  6394.      Skipping
  6395.  
  6396.      'Skipping' will occur with SYS and OVL files only. It simply means that
  6397.      the file will not be scanned. As there are many SYS files containing no
  6398.      code at all (like CONFIG.SYS), it makes absolutely no sense to scan
  6399.      these files for viruses. The same applies to .OV? files. Many overlay
  6400.      files do not deserve to be called as such as they lack an exe-header.
  6401.      Such files cannot be invoked through DOS, which makes them just as
  6402.      invulnerable to direct virus attacks as .TXT files are. If a virus is
  6403.      reported to have infected an .OV? file, it involved one of the relative-
  6404.      ly few overlay files which do contain an exe-header. In that case the
  6405.      infection was the result of the virus monitoring the DOS exec-call
  6406.      (function 4Bh) and infecting any program being invoked that way, inclu-
  6407.      ding 'real' overlay files.
  6408.  
  6409.  
  6410.  
  6411.                                       IV - 10
  6412.  
  6413.  
  6414. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6415.  
  6416.  
  6417. 3.5. The TbScan.Lng file
  6418.  
  6419.      The TbScan.Lng file contains all texts being displayed by TbScan. You
  6420.      can translate or customize the messages with any ASCII editor.
  6421.  
  6422.      The messages are separated by the dollar sign ($). The first message
  6423.      displays our address and registration info. You can edit this message as
  6424.      you please, for instance adding your company logo.
  6425.  
  6426.      You may add color codes to the TbScan.Lng file. A color code is precee-
  6427.      ded by the character '|'. The following color codes are available: (all
  6428.      numbers are in hex).
  6429.  
  6430.      Color          Foreground Highlight   Background
  6431.  
  6432.      Black          00         08          00
  6433.      Blue           01         09          10
  6434.      Green          02         0A          20
  6435.      Cyan           03         0B          30
  6436.      Red            04         0C          40
  6437.      Magenta        05         0D          50
  6438.      Yellow/Brown   06         0E          60
  6439.      White/gray     07         0F          70
  6440.  
  6441.  
  6442.      Example:  To make a highligted green character on a red background the
  6443.                color code would be 0A+40=4A. To make the character blink add
  6444.                80h to the result.
  6445.  
  6446.  
  6447. 3.6. The TBAV.MSG file
  6448.  
  6449.      The TBAV menu shell will display the contents of a file named TBAV.MSG
  6450.      if it exists. You can use this feature to put your company logo on the
  6451.      TBAV screen. You can embed color codes in this file. Consult section 3.5
  6452.      ('The TbScan.Lng file') for more information about color codes.
  6453.  
  6454.  
  6455.  
  6456.  
  6457.  
  6458.  
  6459.  
  6460.  
  6461.  
  6462.  
  6463.  
  6464.  
  6465.  
  6466.  
  6467.  
  6468.  
  6469.  
  6470.                                       IV - 11
  6471.  
  6472.  
  6473. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6474.  
  6475.  
  6476. 4. TbClean
  6477.  
  6478.      In order to understand the way a cleaning program operates, try to
  6479.      imagine how a virus usually goes about infecting a program. The basic
  6480.      principle is not difficult. A virus - just another program really - adds
  6481.      itself to the end of the program it is going to infect. The additional
  6482.      viral code, naturally, increases the size of the program. But simply
  6483.      appending a viral program to another program is not enough, to do any
  6484.      real harm - the viral code has to be executed first. So, the virus grabs
  6485.      the first few bytes at the start of the program, and replaces them with
  6486.      a 'jump' instruction to its own viral code. That way the virus is able
  6487.      to take control as soon as the program is started. Chances are you will
  6488.      never even notice the momentary delay while the extra code is executed,
  6489.      doing whatever the virus has been programmed to do. The virus then
  6490.      restores the original instructions and restarts the program (jump to the
  6491.      start). Your program, more often than not, works as usual - and it goes
  6492.      without saying that any virus worth its salt will make sure it isn't
  6493.      going to draw undue attention too soon! 
  6494.  
  6495.      So, in order to purge a program, we must first restore the starting
  6496.      instruction bytes, which the virus replaced with the jump to its own
  6497.      code. The virus is going to need these bytes again later on, so they
  6498.      will be stored somewhere in the viral code. The cleaner starts out to
  6499.      find those bytes, puts them back in their old place, and truncates the
  6500.      file to the original size.
  6501.  
  6502.      Cleaner programs basically come in two types - the conventional type,
  6503.      for specific types of viruses, and the far more advanced generic clea-
  6504.      ner, offering a much wider scope. Let's take a closer look at both
  6505.      cleaner types and find out where they differ.
  6506.  
  6507.  
  6508.      Conventional cleaners
  6509.  
  6510.      A conventional cleaner has to know which virus to remove. Suppose your
  6511.      system is infected with a Jerusalem/PLO virus. When you start such a
  6512.      conventional cleaner, a procedure much like the following will take
  6513.      place:
  6514.  
  6515.  
  6516.  
  6517.  
  6518.  
  6519.  
  6520.  
  6521.  
  6522.  
  6523.  
  6524.  
  6525.  
  6526.  
  6527.  
  6528.  
  6529.                                       IV - 12
  6530.  
  6531.  
  6532. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6533.  
  6534.  
  6535.          original program        infected program
  6536.  
  6537.          +--------------+        +--------------+
  6538.          |              |        |              |
  6539.          | p            |  100:  |jump          |
  6540.          | r            |        |to 2487       |
  6541.          | o            |        | o            |
  6542.          | g            |        | g            |
  6543.          | r            |        | r            |
  6544.          | a            |        | a            |
  6545.          | m            |        | m            |
  6546.          |              |        |              |
  6547.          | c            |        | c            |
  6548.          | o            |        | o            |
  6549.          | d            |        | d            |
  6550.          | e            |        | e            |
  6551.          |              |        |              |
  6552.          +--------------+        +--------------+
  6553.                            2487: |              |
  6554.                                  |  VIRUS!    p |
  6555.                                  |            r |
  6556.                                  |jmp 100       |
  6557.                                  +--------------+
  6558.  
  6559.  
  6560.      The virus has itself linked to the program start, and after it rstored
  6561.      the original bytes (the 'pr' in this example) it jumps then back to the
  6562.      original program start.
  6563.  
  6564.      The conventional cleaner: 'Hey, the signature file tells me this file is
  6565.      infected with the Jerusalem/PLO virus. Ok, let's see, this virus tacks
  6566.      on 1783 bytes at the end, and it overwrites the first three bytes of the
  6567.      original program with a jump to itself. The original bytes are located
  6568.      at offset 483 in the viral code. So, I have to take those bytes, copy
  6569.      them to the beginning of the file, and I have to remove 1873 bytes of
  6570.      the file. That's it!'
  6571.  
  6572.      There are several pitfalls to worry about in a scenario like this.
  6573.      Obviously, the cleaner has to be given some means to recognize the virus
  6574.      it is supposed to remove. A conventional cleaner cannot cope with a
  6575.      virus unless it knows what to look for. It is even more important to
  6576.      establish the fact that the virus is exactly the same one that the
  6577.      cleaner knows about after checking the validation data. Imagine what
  6578.      whould happen if the virus used in the example had been modified and is
  6579.      now 1869 bytes in size instead of 1873... The cleaner would remove too
  6580.      much! This is not an exceptional case, certainly not after the unslaught
  6581.      of countless so-called mutant straints. The Jerusalem/PLO family, to
  6582.      name but one example, now has more than 100 mutant members!
  6583.  
  6584.  
  6585.  
  6586.  
  6587.  
  6588.                                       IV - 13
  6589.  
  6590.  
  6591. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6592.  
  6593.  
  6594.      Generic cleaners
  6595.  
  6596.      A generic cleaner works on the principle that any kind of virus -
  6597.      whether or not it has made the signature 'charts' - is bad news. That's
  6598.      why TbClean works with a completely different disinfection scheme that
  6599.      is effective with almost all viruses - it does not even need to recogni-
  6600.      ze them. Actually, TbClean represents two cleaners in one: a 'repair'
  6601.      cleaner and a 'heuristic' cleaner.
  6602.  
  6603.      Repair cleaning
  6604.  
  6605.      Repair cleaning needs an Anti-Vir.Dat file that was generated by TbSetup
  6606.      before the infection occurred. The Anti-Vir.Dat file stores vital
  6607.      information about programs, including their original size, the first few
  6608.      instruction codes and a cryptographic checksum. This information is
  6609.      usually all it takes to disinfect a file, no matter what virus, known or
  6610.      unknown, caused the infection. The cleaner will simply restore the bytes
  6611.      at the beginning of the program, truncate the file to the original size,
  6612.      and verify the result by way of the original checksum.
  6613.  
  6614.  
  6615.      Heuristic cleaning
  6616.  
  6617.      TbClean is the first cleaner in the world that has a heuristic cleaning
  6618.      mode. This mode does not need any information about viruses either, but
  6619.      it has the added advantage that it doesn't even care about the original,
  6620.      uninfected state of a program. This cleaning mode is very effective if
  6621.      your system is infected with an unknown virus and you neglected to let
  6622.      TbSetup generate the Anti-Vir.Dat files in time.
  6623.  
  6624.      In heuristic mode, TbClean loads the infected file and starts emulating
  6625.      the program code. It uses a combination of disassembly, emulation and,
  6626.      sometimes, execution to trace the flow of the viral code, pretending to
  6627.      do more or less exactly what the virus would normally be doing. When the
  6628.      virus gets to the original program's instructions and jumps back to the
  6629.      original program code, TbClean stops the emulation process, with a
  6630.      'thank you' to the virus for its cooperation in restoring the original
  6631.      bytes. 
  6632.  
  6633.      The actual cleaning process involves almost the same three steps as with
  6634.      repair cleaning. First the program startup code is repaired and copied
  6635.      back to the file. Then the viral code, now rendered useless and ineffec-
  6636.      tive, is removed and, for the sake of security, TbClean will do a final
  6637.      analysis of the purged program file.
  6638.  
  6639.  
  6640.  
  6641.  
  6642.  
  6643.  
  6644.  
  6645.  
  6646.  
  6647.                                       IV - 14
  6648.  
  6649.  
  6650. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6651.  
  6652.  
  6653. 5. TbGensig
  6654.  
  6655. 5.1 The Purpose of TbGenSig
  6656.  
  6657.      TbGenSig is a signature file compiler. Since TBAV is distributed with an
  6658.      up to date, ready-to-use signature file, you do not really need the
  6659.      signature file compiler.
  6660.  
  6661.      If, however, you want to define your own virus signatures, you will need
  6662.      the TbGensig utility. You can use either published signatures or define
  6663.      your own ones if you are familiar with the structure of software.
  6664.  
  6665.      One way or another, you only need to do this in case of an emergency,
  6666.      like in case of the unfortunate event that your machine or even your
  6667.      company is attacked by a yet unknown, thus not recognized virus. It is
  6668.      recommended to send a few samples of the virus to some virus experts
  6669.      anyway, in order to let scanners recognize the virus in the next upgra-
  6670.      de.
  6671.  
  6672.      Since it is not possible to explain the whole subject of virus hunting
  6673.      in one manual, this document assumes you have enough experience and
  6674.      knowledge to make your own signatures.
  6675.  
  6676.      TbGenSig searches for a file named UserSig.Dat in the current directory.
  6677.      This file should contain the signatures you want to add to the TBAV
  6678.      signature file TbScan.Sig. TbGenSig checks the contents of the User-
  6679.      Sig.Dat file and applies it to the TbScan.Sig file.
  6680.  
  6681.      If you want to delete or modify your signatures, just edit or delete the
  6682.      UserSig.Dat file and execute TbGenSig again.
  6683.  
  6684.      TbGenSig will list all signatures in the TbScan.Sig file on screen while
  6685.      being executed.
  6686.  
  6687.  
  6688. 5.2 Defining signatures
  6689.  
  6690.      Format of the  UserSig.dat text
  6691.  
  6692.      You can create and edit the UserSig.Dat file with every DOS editor which
  6693.      is able to output unformatted text. All lines starting with ';' are
  6694.      comment lines. TbGenSig file ignores these lines.
  6695.  
  6696.      Lines starting with '%' will be displayed in the upper TbGenSig window.
  6697.  
  6698.      In the first line the name of a virus is expected. The second line
  6699.      contains one or more keywords. The third line contains the signature
  6700.      itself. This combination of three lines is called a 'signature record'.
  6701.  
  6702.  
  6703.  
  6704.  
  6705.  
  6706.                                       IV - 15
  6707.  
  6708.  
  6709. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6710.  
  6711.  
  6712.      A signature record should look like this:
  6713.  
  6714.           Test virus
  6715.           exe com inf
  6716.           abcd21436587abcd
  6717.  
  6718.      You may use spaces in the signature for your own convenience. TbGenSig
  6719.      will ignore these spaces.
  6720.  
  6721.  
  6722.      Adding a published signature    
  6723.  
  6724.      If you want to add a signature that has been published, you should act
  6725.      as illustrated below.
  6726.  
  6727.      -    Edit or create the UserSig.Dat file. Convert the published signatu-
  6728.           re to an acceptable format for TbGenSig.
  6729.  
  6730.      -    Use keywords COM EXE BOOT INF
  6731.  
  6732.           You would get:
  6733.  
  6734.           New virus
  6735.           exe com boot inf
  6736.           1234abcd5678efab
  6737.  
  6738.      -    Execute TbGenSig.
  6739.  
  6740.  
  6741.      Defining a Signature with TBScan
  6742.  
  6743.      This section is intended for advanced users who own a TBAV.KEY file.
  6744.  
  6745.      Although the TbScan.Sig file is updated frequently, new viruses are
  6746.      created every day, outpacing the regular upgrading service of this data
  6747.      file. It is therefore possible that one day your system gets infected by
  6748.      a recently created virus that has not yet been listed in the signature
  6749.      file. TbScan will not always detect the virus in such cases, not even
  6750.      with the heuristic analysis. If you are convinced that your system must
  6751.      have been infected without TbScan confirming this, thischapter will
  6752.      supply you with a valuable tool to detect unknown viruses with. This
  6753.      section offers step-by-step assistance in creating an emergency signatu-
  6754.      re that can be (temporarily) added to your copy of TbScan.Sig
  6755.  
  6756.      -    Collect some infected files and copy them into a temporary directo-
  6757.           ry.
  6758.  
  6759.      -    Boot from a clean write-protected diskette. Do NOT execute ANY
  6760.           program from the infected system, even though you expect this
  6761.           program to be clean.
  6762.  
  6763.  
  6764.  
  6765.                                       IV - 16
  6766.  
  6767.  
  6768. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6769.  
  6770.  
  6771.      -    Execute TbScan from your write-protected TbScan diskette with the
  6772.           'extract' option set. Make sure that the temporary directory where
  6773.           you stored the infected files will be TbScan's target directory.
  6774.           With its 'extract' option set, TbScan will NOT scan the files but,
  6775.           instead, display the first instructions that are found at the
  6776.           entry-point of the infected programs. 
  6777.  
  6778.  
  6779. =>   Please note that we highly recommend you to simultaneously set the 'log'
  6780.      option of TbScan to generate a log file.
  6781.  
  6782.      -    Compare the 'signatures' extracted by TbScan. You should see
  6783.           something like this:
  6784.  
  6785.  
  6786.           NOVIRUS1.COM    2E67BCDEAB129090909090ABCD123490CD
  6787.           NOVIRUS2.COM    N/A
  6788.           VIRUS1.COM      1234ABCD5678EFAB909090ABCD123478FF
  6789.           VIRUS2.COM      1234ABCD5678EFAB901234ABCD123478FF
  6790.           VIRUS3.COM      1234ABCD5678EFAB9A5678ABCD123478FF
  6791.  
  6792.      If the 'signatures' are completely different, the files are either
  6793.      probably not infected, or they have been infected by a polymorphic virus
  6794.      that requires an algorithmic detection module to detect it.
  6795.  
  6796.      -    There might be some differences in the 'signatures'. You can use
  6797.           the question mark wildcard ('?') in this case.
  6798.  
  6799.      A signature to detect the 'virus' in the example above could be:
  6800.  
  6801.           1234ABCD5678EFAB ?3 ABCD123478FF
  6802.  
  6803.      The '?3' means that there are three bytes on that position that should
  6804.      be skipped.
  6805.  
  6806.      -    Add the signature to the data file UserSig.Dat. Give the virus a
  6807.           name in the first line of its entry. Specify the following key-
  6808.           words: COM, EXE, INF, ATE in the second line. Enter the signature
  6809.           in the third.
  6810.  
  6811.  
  6812.      You would get:
  6813.  
  6814.           New virus
  6815.           exe com ate inf
  6816.           1234abcd5678efab?3abcd123478ff
  6817.  
  6818.  
  6819.      -    Execute TbGenSig. Make sure the resulting TbScan.Sig file is in the
  6820.           TbScan directory.
  6821.  
  6822.  
  6823.  
  6824.                                       IV - 17
  6825.  
  6826.  
  6827. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6828.  
  6829.  
  6830.      -    Execute TbScan again in the directory containing the infected
  6831.           files. TbScan should now detect the virus.
  6832.  
  6833.      -    Send a couple of infected files to a recommended virus expert,
  6834.           preferably to the ThunderBYTE organisation.
  6835.  
  6836.      Congratulations! You have defined a signature all by yourself! Now you
  6837.      can scan all your machines in search of the new virus.
  6838.      However, keep in mind that this method of extracting a signature is a
  6839.      'quick-and-dirty' solution to viral problems. The extracted signature
  6840.      might not detect the presence of the virus in all cases. A signature
  6841.      that is guaranteed to detect all instances of the virus can be made only
  6842.      after complete disassembly of the new virus. For these reasons you
  6843.      should NOT distribute your home-made 'signature' to others. The signatu-
  6844.      re eventually assembled by experienced anti-virus researchers will be
  6845.      completely different in most cases!
  6846.  
  6847.  
  6848. 5.3 Keywords
  6849.  
  6850.      Keywords are used for several purposes. They are classified in catego-
  6851.      ries. Keywords may be separated by spaces, commas or tabs. The maximum
  6852.      line length is 80 characters.
  6853.  
  6854.      At least one of the following flags should be specified:
  6855.      BOOT, COM, EXE, HIGH, LOW, SYS or WIN.
  6856.  
  6857.  
  6858.      Item keywords
  6859.  
  6860.  
  6861.      BOOT       Signature can be found in bootsector/partition
  6862.      COM        Signature can be found in COM programs.                  
  6863.  
  6864.      This flag initiates the scanner to search for this signature in executa-
  6865.      ble files that do not have an EXE header or device header.
  6866. =>   Note:   The file contents determines the file type, not the filename
  6867.      extension!
  6868.  
  6869.  
  6870.      EXE        Signature can be found in EXE programs.
  6871.  
  6872.      This flag initiates the scanner to search for this signature in the load
  6873.      module of EXE type files. EXE files are files that have an EXE header.
  6874. =>   Note: The file contents determines the file type, not the filename
  6875.      extension!
  6876.  
  6877.  
  6878.      HIGH      Signature can be found in HIGH memory (above program).This
  6879.                flag initiates the scanner to search for this signature in
  6880.                memory above the memory allocated by the scanner.
  6881.  
  6882.  
  6883.                                       IV - 18
  6884.  
  6885.  
  6886. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6887.  
  6888.  
  6889.      This keyword is intended for resident viruses that allocate memory at
  6890.      system boot, or viruses that decrease the size of the last MCB (Memory
  6891.      Control Block).
  6892. =>   Note:  The flag HIGH does not mean that the signature should be searched
  6893.      in UPPER memory.
  6894.  
  6895.  
  6896.      LOW       Signature can be found in LOW memory. This flag initiates the
  6897.                scanner to search for this signature in memory below the PSP
  6898.                (Program Segment Prefix) of the scanner and in the UMB (Upper
  6899.                Memory Blocks). This keyword is intended for viruses that
  6900.                remain resident in memory, using the normal DOS TSR (Terminate
  6901.                and Stay Resident) function calls. 
  6902.  
  6903.  
  6904.      SYS       Signature can be found in SYS programs.
  6905.  
  6906.  
  6907.      WIN       Signature can be found in Windows programs.
  6908.  
  6909.  
  6910.      Message keywords
  6911.  
  6912.      DAM        Message prefix:  'damaged by'.
  6913.      DROP       Message prefix:  'dropper of'.
  6914.      FND        Message prefix:  'found the'.
  6915.      INF        Message prefix:  'infected by' 
  6916.                 Message suffix:  'virus'
  6917.      JOKE       Message prefix:  'joke named'.
  6918.      OVW        Message prefix:  'overwritten by'.
  6919.      PROB       Mess. pre-prefix:'probably'.
  6920.      TROJ       Message prefix:  'trojanized by'.
  6921.  
  6922.  
  6923.  
  6924.      Position keywords
  6925.  
  6926.  
  6927.      UATE      Signature should be found at unresolved entry-point.
  6928.  
  6929.      Purpose:
  6930.      The signature starts directly at the unresolved entry-point of the viral
  6931.      code. With some polymorphic viruses, it may be possible to create a
  6932.      signature from the degarbling routine, although it may either be too
  6933.      short or give false positives with a global search. An initial branch
  6934.      instruction  may be part of the signature.
  6935.  
  6936.                 COM type files:  top of file (IP 0100h).
  6937.                 EXE type files:  CS:IP as defined in the
  6938.                                  EXE-header.
  6939.                 WIN type files:  Non-DOS CS:IP of the new
  6940.                                  EXE-header.
  6941.  
  6942.                                       IV - 19
  6943.  
  6944.  
  6945. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  6946.  
  6947.  
  6948.      Remarks:
  6949.      The keyword UATE is not allowed for BOOT, SYS, LOW, HMA or HIGH type
  6950.      signatures.
  6951.  
  6952.  
  6953.      ATE        Signature should be found AT ENTRY point.
  6954.  
  6955.      Purpose:
  6956.      The signature starts directly at the entry-point of the viral code. With
  6957.      some polymorphic viruses, it may be possible to create a signature from
  6958.      the degarbling routine, although it may either be too short or give
  6959.      false positives with a global search.
  6960.  
  6961.      Therefore the keyword ATE is used to make sure that the scanners do not
  6962.      scan the entire file for the signature, but only look at the entry-point
  6963.      for the signature.
  6964.  
  6965.      The entry-point of a virus is defined by the first byte that is not
  6966.      equal to either a JUMP SHORT, JUMP LONG or a CALL NEAR.
  6967.  
  6968.                 Unresolved entry point:1JUMP LONG   3
  6969.                                      2 ...
  6970.                                      3 JUMP SHORT   5
  6971.                                      4 ...
  6972.                                      5 CALL FAR     7
  6973.                                      6 ...
  6974.                                      7 CALL NEAR    9
  6975.                                      8 ...
  6976.                 Resolved entry point:9  POP <reg>
  6977.  
  6978.           The entry-point of the above fragment is Line 9 as this is the
  6979.           first code to be executed which is not a JUMP SHORT, JUMP LONG or
  6980.           CALL  NEAR or CALL FAR.
  6981.  
  6982.      Remarks:
  6983.      1)   The entry-point can be determined by a code analyzer to cope with
  6984.           tricks like coding a NOP or DEC just before the branch instruction.
  6985.           Therefore the results of the scanner should be tested carefully. In
  6986.           case of trouble use the TbScan 'extract' option to find out what
  6987.           TbScan considers to be the entry point of the program. 
  6988.  
  6989.      2)   The flag ATE is not allowed for BOOT, SYS, LOW, HMA or HIGH type
  6990.           signatures.
  6991.  
  6992.  
  6993.      XHD       Signature can be found at offset 2 of the EXE header.
  6994.  
  6995.      Purpose:
  6996.      This position keyword is rarely used. It should only be used to detect
  6997.      the also very rare high-level language viruses; viruses written in a
  6998.      language like C or Basic. These viruses normally contain standard setup
  6999.      routines and library routines which are not suitable to define a signa-
  7000.  
  7001.                                       IV - 20
  7002.  
  7003.  
  7004. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  7005.  
  7006.  
  7007.      ture. The XHD keyword can be used as a last resort to detect such
  7008.      viruses.
  7009.  
  7010.      Remarks:
  7011.      This flag may only be used for EXE or WIN type signatures.
  7012.  
  7013.  
  7014. 5.4 Wildcards
  7015.  
  7016.      In a virus signature, wildcards characters may be used to recognize so
  7017.      called polymorphic (self- modifying/mutating) virus code. Below a
  7018.      description is presented of the wildcard notation. All numbers are in
  7019.      hexadecimal.
  7020.  
  7021.  
  7022.      Position Wildcards
  7023.  
  7024.      Position wildcards affect the position where the parts of the signature
  7025.      will be matched.
  7026.  
  7027.           Skip
  7028.           ?n         =  Skip n amount of bytes and continue.
  7029.           ?@nn       =  Skip nn amount of bytes and continue.
  7030.                          nn should not exceed 7F.
  7031.  
  7032.           Variable
  7033.           *n         =  Skip up to n bytes.
  7034.           *@nn       =  Skip up to nn bytes and continue.
  7035.                          nn should not exceed 1F.
  7036.  
  7037.  
  7038.      Opcode wildcards      
  7039.  
  7040.      The 'opcode' wildcards are shaped to detect instruction ranges:
  7041.  
  7042.           Low opcode
  7043.           nL         =  One of the values in the range n0-n7.
  7044.  
  7045.           High opcode
  7046.           nH         =  One of the values in the range n8-nF.
  7047.  
  7048.  
  7049.      Intended use of the opcode wildcards:
  7050.  
  7051.      Suppose a polymorphic virus puts a value in a word register (using a MOV
  7052.      WREG,VALUE instruction), and increments a register (using an INC WREG
  7053.      instruction, and pops a word register from the stack (using a POP
  7054.      instruction). Both the registers and the value are variable. 
  7055.  
  7056.      You could code it like this:
  7057.           bh4l5h
  7058.  
  7059.  
  7060.                                       IV - 21
  7061.  
  7062.  
  7063. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  7064.  
  7065.  
  7066.      B8-BF are the opcodes for 'MOV WREG,VALUE', 40-47 are the opcodes for
  7067.      'INC WREG', and 58-5F are the opcodes for 'POP REG'.
  7068.  
  7069.  
  7070.      Example
  7071.  
  7072.      To show the power of the use of the appropriate keywords and wildcards
  7073.      here is the signature of the Haifa.Mozkin virus. This virus is highly
  7074.      polymorphic and encrypted. It contains a small variable decryptor to
  7075.      decrypt the virus.
  7076.  
  7077.      There are two problems here: most bytes are encrypted or variable, thus
  7078.      not suitable to be part of a signature, and the remainder is short and
  7079.      would cause dozens of false alarms.
  7080.  
  7081.      However, using the appropriate keywords and wildcards, it is possible to
  7082.      define a reliable signature. The signature below is used by TbScan to
  7083.      detect the Haifa.Mozkin virus.
  7084.  
  7085.           Haifa.Mozkin
  7086.           com exe ate inf
  7087.           bh?2bh?109?2*22e80?24l4h75fl
  7088.  
  7089.  
  7090.      Let's analyze it.
  7091.  
  7092.      The first line describes the name of the virus. The second line tells
  7093.      the scanner to search for this signature in COM and EXE type files. It
  7094.      also tells the scanner that it should report the file as infected if the
  7095.      signature can be matched. The keyword ATE instructs the scanner to match
  7096.      this signature only at the resolved entry-point of the file. The virus
  7097.      starts of course with decrypting itself, so it is guaranteed that the
  7098.      scanner will scan this location. The ATE instruction limits the scope of
  7099.      this signature to just one position in a file, so this will reduce the
  7100.      chances of false alarms significantly.
  7101.  
  7102.  
  7103.      The third line is the signature definition. Let's reverse engineer it:
  7104.  
  7105.      bh?2      This means: a byte in the range B8-BF followed by two variable
  7106.                bytes. B8-BF is a 'MOV WREG,VALUE' instruction. From the
  7107.                register we only know it is a word register, the value is
  7108.                unknown as well.
  7109.  
  7110.      bh?109    This means: another 'MOV WREG,VALUE' instruction. The register
  7111.                is a word register, and from the value we know that it is in
  7112.                the range 0900 to 09FF.
  7113.  
  7114.      ?2*2      This means: skip two to four bytes. This instruction is inser-
  7115.                ted by the virus to make it harder to define a signature.
  7116.  
  7117.  
  7118.  
  7119.                                       IV - 22
  7120.  
  7121.  
  7122. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                SECTION IV
  7123.  
  7124.  
  7125.      2e80?2    This means: the virus performs an arithmethic byte sized
  7126.                operation with an immediate value (decrypts one byte) with a
  7127.                CS: segment override. The exact operation, the memory location
  7128.                and the value are unknown.
  7129.  
  7130.      4l        This means: a byte in the range 40-47. This is an 'INC WREG'
  7131.                instruction. The virus increments the counter to the next byte
  7132.                to be decrypted.
  7133.  
  7134.      4h        This means: a byte in the range 48-4F. This is a 'DEC WREG'
  7135.                instruction. The virus decrements the iteration count.
  7136.  
  7137.      75fl      Opcode 75 is a JNZ instruction. If the decremented register
  7138.                did not reach zero, the virus jumps back and repeats the
  7139.                operation. How much does it jump? That tells the 'fl' part:
  7140.                somewhere between -16 (F0h) to -8 (F7h) bytes.
  7141.  
  7142.  
  7143.      Although the signature language of TbGenSig is very powerful, there are
  7144.      viruses which are so highly polymorphic that they require even more
  7145.      sophisticated wildcards, keywords or even special detection algorithms.
  7146.      The explanation however of these wildcards, keywords or algorithmic
  7147.      detection definitions is so complicated that it is not suitable to be
  7148.      presented in a user manual.
  7149.  
  7150.  
  7151.  
  7152.  
  7153.  
  7154.  
  7155.  
  7156.  
  7157.  
  7158.  
  7159.  
  7160.  
  7161.  
  7162.  
  7163.  
  7164.  
  7165.  
  7166.  
  7167.  
  7168.  
  7169.  
  7170.  
  7171.  
  7172.  
  7173.  
  7174.  
  7175.  
  7176.  
  7177.  
  7178.                                       IV - 23
  7179.  
  7180.  
  7181. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX A
  7182.  
  7183.  
  7184. Appendix A. TBAV messages
  7185.  
  7186.  
  7187.      The TBAV utilities may display various messages when executed. Most
  7188.      messages will be clear enough, but here is some additional information
  7189.      followed by the name of the appropriate TBAV utility.
  7190.  
  7191.  
  7192.      
  7193. TbClean
  7194.  
  7195.  
  7196.      Anti-Vir.Dat record          The Anti-Vir.Dat record has been found, but
  7197.      found: information mat-      the information matches the current state
  7198.      ches the current state       of the file. The Anti-Vir.Dat record was
  7199.      of the file. Anti-           created after the file got infected, or the
  7200.      Vir.Dat file was created     file is not changed at all. TbClean is
  7201.      after the infection.         going to emulate the file to clean it heu-
  7202.      Trying emulation...          ristically.
  7203.  
  7204.      Anti-Vir.Dat record          The Anti-Vir.Dat record that belongs to the
  7205.      found: reconstructing        infected file has been found. The informa-
  7206.      original state...            tion will be used to reconstruct the file.
  7207.  
  7208.      Anti-Vir.Dat record not      The Anti-Vir.Dat file did not exist or did
  7209.      found: original state        not contain information of the infected
  7210.      unknown. Trying emulati-     program, so the original state of the in-
  7211.      on...                        fected program is unknown to TbClean. Tb-
  7212.                                   Clean will switch to its heuristic mode to
  7213.                                   determine the state of the original file.
  7214.  
  7215.                                   Note: to prevent a situation like this,
  7216.                                   make sure to use the TbSetup program to
  7217.                                   generate the Anti-Vir.Dat records.
  7218.  
  7219.                                   These records are of great help to TbClean.
  7220.                                   When the file is already infected it is too
  7221.                                   late to generate the Anti-Vir.Dat records.
  7222.  
  7223.      Emulation terminate:         The emulation process has been terminated
  7224.      <reason>                     for the reason specified. TbClan will now
  7225.      <reason> can be one of       consult the collected information to see if
  7226.      the following:               it can disinfect the file.
  7227.  
  7228.      Jump to BIOS code.           The virus tried to perform a call or jump
  7229.                                   directly into BIOS code. This process can
  7230.                                   not be emulated so it will be aborted. The
  7231.                                   program can probably not be disinfected.
  7232.  
  7233.      Approached stack crash.      The emulated program is approaching a
  7234.                                   crash. Something went wrong while emulating
  7235.                                   the program so it will be aborted. The
  7236.                                   program can probably not be disinfected.
  7237.  
  7238.  
  7239. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX A
  7240.  
  7241.  
  7242.      Attempt to violate li-       TbClean will not disassemble this program
  7243.      cense agreements.            for obvious reasons.
  7244.  
  7245.      Encountered keyboard         The emulated program tries to read the
  7246.      input request.               keyboard. This is very unusual for viruses,
  7247.                                   so the file is probably not infected at
  7248.                                   all.
  7249.  
  7250.      Encountered an invalid       The emulator encountered an unknown in-
  7251.      instruction.                 struction. For some reason the emulation
  7252.                                   failed. The program can probably not be
  7253.                                   disinfected.
  7254.  
  7255.      DOS program-terminate        The emulated program requests DOS to stop
  7256.      request.                     execution. The program is not infected at
  7257.                                   all, or infected by an overwriting virus
  7258.                                   that does not pass control to its host
  7259.                                   program. The program can not be disinfec-
  7260.                                   ted.
  7261.  
  7262.      Jumped to original pro-      The program jumped back to the start po-
  7263.      gram entry point.            sition. It is very likely it is infected.
  7264.                                   The program can probably be disinfected.
  7265.  
  7266.      Undocumented DOS call        This is very common for viruses that add
  7267.      with pointers to reloca-     themselves in front of the COM type pro-
  7268.      ted code.                    gram. The program can probably be disin-
  7269.                                   fected.
  7270.  
  7271.      Encountered an endless       TbClean encountered a situation in which
  7272.      loop.                        the program is executing the same in-
  7273.                                   struction sequences over and over again for
  7274.                                   hundreds of thousands of times. It is unli-
  7275.                                   kely that the program will ever escape from
  7276.                                   this loop, so the emulation will be abor-
  7277.                                   ted.
  7278.  
  7279.      Ctrl-break pressed.          The user pressed <Ctrl><Break> so the clean
  7280.                                   attempt is aborted.
  7281.  
  7282.      Emulation aborted for        If this message is shown, please send a
  7283.      unknown reason.              copy of the file being emulated to ESaSS BV
  7284.                                   or one of the support BBSs.
  7285.  
  7286.      Sorry, the collected         The heuristic cleaning mode of TbClean is
  7287.      information is not suf-      aborted and has not been successful. The
  7288.      ficient to clean file...     only option left is to restore the file
  7289.                                   from a backup or to re-install the program.
  7290.  
  7291.      Collected enough infor-      The emulation of the virus provided TbClean
  7292.      mation to attempt a re-      with all information to disinfect the file.
  7293.      liable clean opera-
  7294.      tion...
  7295.  
  7296.  
  7297. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX A
  7298.  
  7299.  
  7300.      Some DOS error occured.      Some DOS error occured while trying to
  7301.      TbClean aborted!             clean the file. Check that no files are
  7302.                                   read-only or located on a write protected
  7303.                                   disk, and make sure there is a reasonable
  7304.                                   amount of free disk space.
  7305.  
  7306.      The clean attempt seems      It seems that TbClean removed the virus
  7307.      to be successful. Test       from the file. No doubt about the virus: it
  7308.      the file carefully!          is gone. However, take care and test the
  7309.                                   file carefully to see if it works as expec-
  7310.                                   ted.
  7311.  
  7312.      Reconstruction failed.       TbClean tried to reconstruct the original
  7313.      Program might be over-       file with the help of the Anti-Vir.Dat
  7314.      written. Trying emulati-     record. However, the attempt failed. Tb-
  7315.      on...                        Clean is going to emulate the file to try
  7316.                                   to clean it heuristically.
  7317.  
  7318.      Reconstruction succes-       The file has been reconstructed to its
  7319.      sfully completed.            original state with help of the information
  7320.                                   of the Anti-Vir.Dat record. The CRC (check-
  7321.                                   sum) of the original file and the cleaned
  7322.                                   file are completely equal, so the cleaned
  7323.                                   file is almost certain equal to the origi-
  7324.                                   nal file.
  7325.  
  7326.      Staring clean attempt.       TbClean is analyzing the infected file and
  7327.      Analyzing infected fi-       tries to locate the Anti-Vir.Dat record.
  7328.      le...
  7329.  
  7330.  
  7331. TbDriver
  7332.  
  7333.      Another version of Tb-       You started a TbDriver.Exe with another
  7334.      Driver is already resi-      version number or processor type than the
  7335.      dent!                        TbDriver already in memory.
  7336.  
  7337.      Cannot remove TbDriver.      You tried to remove TbDriver from memory,
  7338.      Unload other TSRs first!     but other resident software as loaded after
  7339.                                   TbDriver. Resident software can only be
  7340.                                   removed from memory by unloading them in
  7341.                                   reversed order.
  7342.  
  7343.      LAN support was  already     You tried to use the option 'net' for a
  7344.      installed.                   second time, or TbDriver already enabled
  7345.                                   network support automatically.
  7346.  
  7347.      TbDriver not active.         The resident TBAV utilities need TbDriver,
  7348.      Load TbDriver first!         so you have to load TbDriver first.
  7349.  
  7350.      TbDriver is not <versi-      The version of TbDriver found in memory
  7351.      on>.                         does not match the version number of this
  7352.                                   resident TBAV utility. Make sure you do not
  7353.                                   mix version numbers!
  7354.  
  7355.  
  7356. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX A
  7357.  
  7358.  
  7359.      This version of TbDriver     You are using a processor optimized version
  7360.      requires a <typeID> pro-     of TbDriver which can not be executed by
  7361.      cessor.                      the current processor.
  7362.  
  7363.  
  7364. TbScan
  7365.  
  7366.      Cannot create logfile.       The specified log file path is illegal, the
  7367.                                   disk is full or write protected, or the
  7368.                                   file already exists and cannot be overwrit-
  7369.                                   ten.
  7370.  
  7371.      [Cannot read datafile]       TbScan needs access to its data file to be
  7372.                                   able to tell you the name of the virus. If
  7373.                                   it cannot access the data file it displays
  7374.                                   this message instead of the virus.
  7375.  
  7376.      Command line error.          An invalid or illegal commandline option
  7377.                                   has been specified.
  7378.  
  7379.      No matching executable       The specified path does not exist, is emp-
  7380.      files found.                 ty, or is not an executable file.
  7381.  
  7382.      Sanity check failed!         TbScan detected that its internal checksum
  7383.                                   does not match anymore. TbScan is possibly
  7384.                                   contaminated by a virus. Obtain a clean
  7385.                                   copy of TbScan, copy the program on a write
  7386.                                   protected diskette, boot from that diskette
  7387.                                   and try again!
  7388.  
  7389.  
  7390. TbScanX
  7391.  
  7392.      Data file not found.         TbScanX has not been able to locate the
  7393.                                   data file.
  7394.  
  7395.      Not enough memory.           There is not enough free memory to process
  7396.                                   the data file. Try to enable swapping, or
  7397.                                   if you are already doing so, try another
  7398.                                   swapping mode. See also section IV, chapter
  7399.                                   "Memory requirements".
  7400.  
  7401.  
  7402. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX B
  7403.  
  7404.  
  7405. Appendix B. TbScan - Heuristic flag descriptions
  7406.  
  7407.  
  7408.      # - Decryptor code found
  7409.      The file possibly contains a self-decryption routine. Some copy-protec-
  7410.      ted software is encrypted so this warning may appear for some of your
  7411.      files. If, however, this warning appears in combination with, for
  7412.      example, the 'T' warning, there could be a virus involved and TbScan
  7413.      assumes the file is contaminated! Many viruses encrypt themselves and
  7414.      cause this warning to be displayed.
  7415.  
  7416.      ! - Invalid program.
  7417.      Invalid opcode or out-of-range branch. The program has either an entry
  7418.      point that has been located outside the body of the file, or reveals a
  7419.      chain of 'jumps' that can be traced to a location outside the program
  7420.      file. Another possibility is that the program contains invalid processor
  7421.      instructions. The program being checked is probably damaged, and cannot
  7422.      be executed in most cases. Anyway, TbScan does not take any risk and
  7423.      uses the 'scan' method to scan the file.
  7424.  
  7425.      1 - 80186+ instructions
  7426.      The file contains instructions which can not be executed by 8088 proces-
  7427.      sors, and require a 80186 or better processor.
  7428.  
  7429.      @ - Strange instructions
  7430.      The file contains instructions which are not likely to be generated by
  7431.      an assembler, but by some code generator like a polymorphic virus
  7432.      instead.
  7433.  
  7434.      ? - Inconsistent header.
  7435.      The program being processed has an exe-header that does not reflect the
  7436.      actual program lay-out. Many viruses do not update the exe-header of an
  7437.      EXE file correctly after they have infected the file, so if this warning
  7438.      pops up frequently, it seems you have a problem.
  7439.  
  7440.      c - No integrity check
  7441.      This warning indicates that no checksum/recovery information has been
  7442.      found about the indicated file. It is highly recommended to use TbSetup
  7443.      in this case to store information of the mentioned file. This info can
  7444.      be used later on for integrity checking and to recover from virus
  7445.      infections.
  7446.  
  7447.      h - Hidden or System file.
  7448.      The file has the 'Hidden' or the 'System' file attribute set. This means
  7449.      that the file is not visible in a DOS directory display but TbScan will
  7450.      scan it anyway. If you don't know the origin and/or purpose of this
  7451.      file, you might be dealing with a 'Trojan Horse' or a 'joke' virus
  7452.      program. Copy such a file onto a diskette; then remove it from it's
  7453.      program environment and check if the program concerned is missing the
  7454.      file. If a program does not miss it, you will have freed some disk
  7455.      space, and maybe you have saved your system from a future disaster in
  7456.      the process.
  7457.  
  7458.      i - Internal overlay.
  7459.  
  7460.  
  7461. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX B
  7462.  
  7463.  
  7464.      The program being processed has additional data or code behind the load-
  7465.      module as specified in the exe-header of the file. The program might
  7466.      have internal overlay(s), or configuration or debug information appended
  7467.      behind the load-module of the EXE file.
  7468.  
  7469.      p - Packed or compressed file.
  7470.      The program has been packed or compressed. There are some utilities that
  7471.      are able to compress a program file, like EXEPACK or PKLITE. If the file
  7472.      was infected after the file had been compressed, TbScan will be able to
  7473.      detect the virus. However, if the file had already been infected before
  7474.      it was compressed, the virus has also been compressed in the process,
  7475.      and a virus scanner might not be able to recognize the virus anymore.
  7476.      Fortunately, this does not happen very often, but you should beware! A
  7477.      new program might look clean, but can turn out to be the carrier of a
  7478.      compressed virus. Other files in your system will then be infected too,
  7479.      and it is these infections that will be clearly visible to virus scan-
  7480.      ners.
  7481.  
  7482.      w - Windows or OS/2 header.
  7483.      The program can be or is intended to be used in a Windows (or OS/2)
  7484.      environment. TbScan will also scan this file for Windows and OS/2
  7485.      viruses too.
  7486.  
  7487.      A - Suspicious Memory Allocation
  7488.      The program uses a non-standard way to search for, and/or to allocate
  7489.      memory. A lot of viruses try to hide themselves in memory so they use a
  7490.      non-standard way to allocate this memory. Some programs (high-loaders or
  7491.      diagnostic software) also use non-standard ways to search or allocate
  7492.      memory.
  7493.  
  7494.      B - Back to entry.
  7495.      The program seems to execute some code, and after that it jumps back to
  7496.      the entry-point of the program. Normally this would result in an endless
  7497.      loop, except when the program has also modified some of its instructi-
  7498.      ons. This is quite common behaviour for computer viruses. In combination
  7499.      with any other flag TbScan will report a virus.
  7500.  
  7501.      C - File has been changed
  7502.      This warning can only appear if you used TbSetup to generate the Anti-
  7503.      Vir.Dat files. If this warning appears this means that the file has been
  7504.      changed. If you did not upgrade the software it is very likely that a
  7505.      virus infected the file! Note that TbScan does not display this warning
  7506.      if only some internal configuration area of the file changes. This
  7507.      warning means that code at the program entry point, the entry-point
  7508.      itself and/or the file size have been changed.
  7509.  
  7510.      D - Direct disk access
  7511.      This flag is displayed if the program being processed has instructions
  7512.      near the entry-point to write to a disk directly. It is quite normal
  7513.      that some disk-related utilities cause this flag to be displayed. As
  7514.      usual, if many of your files (which have no business writing directly to
  7515.      the disk) cause this flag to be displayed, your system might be infected
  7516.      by an unknown virus.
  7517.  
  7518.  
  7519. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX B
  7520.  
  7521.  
  7522. =>   Note that a program that accesses the disk directly does not always have
  7523.      to be marked by the 'D' flag. Only when the direct disk instructions are
  7524.      near the program entry point it will be reported by TbScan. If a virus
  7525.      is involved the harmful instructions are always near the entry point,
  7526.      which is the place where TbScan looks for them.
  7527.  
  7528.      E - Flexible Entry-point
  7529.      The program starts with a routine that determines its own location
  7530.      within the program file. This is rather suspicious because sound pro-
  7531.      grams have a fixed entry-point so they do not have to determine this
  7532.      location. For viruses however this is quite common: about 50% of the
  7533.      known viruses cause this flag to be displayed.
  7534.  
  7535.      F - Suspicious file access
  7536.      TbScan has found instruction sequences common to infection schemes used
  7537.      by viruses. This flag will appear with those programs that are able to
  7538.      create or modify existing files.
  7539.  
  7540.      G - Garbage instructions.
  7541.      The program contains code that seems to have no purpose other than
  7542.      encryption or avoiding recognition by virus scanners. In most cases
  7543.      there will not be any other flags since the file is encrypted and the
  7544.      instructions are hidden. In a few cases this flag will appear for
  7545.      'normal' files. These files however are badly designed, which is the
  7546.      reason the 'garbage' flag appears.
  7547.  
  7548.      J - Suspicious jump construct.
  7549.      The program did not start at the program entry point. The code has
  7550.      jumped at least two times before reaching the final start-up code, or
  7551.      the program jumped using an indirect operand. Sound programs should not
  7552.      display this kind of strange behaviour. If many files cause this warning
  7553.      to be displayed, you should investigate your system thoroughly.
  7554.  
  7555.      K - Unusual stack.
  7556.      The EXE file being processed has an odd (instead of even) stack offset
  7557.      or a suspicious stack segment. Many viruses are quite 'buggy' by setting
  7558.      up an illegal stack value.
  7559.  
  7560.      L - program Load trap
  7561.      The program might trap the execution of other software. If the file also
  7562.      causes flag M (memory resident code) to be displayed, it is very likely
  7563.      that the file is a resident program that determines when another program
  7564.      is executed. A lot of viruses trap the program load and use it to infect
  7565.      the program. Some anti-virus utilities also trap the program load.
  7566.  
  7567.      M - Memory resident code.
  7568.      TbScan has found instruction sequences which could cause the program to
  7569.      hook into important interrupts. A lot of TSR (Terminate and Stay Resi-
  7570.      dent) programs will trigger this flag, because hooking into interrupts
  7571.      is part of their usual behaviour. If, however, a lot of non-TSR programs
  7572.      cause this warning flag to appear, you should be suspicious. It is
  7573.      likely that your files have been infected by a virus that remains
  7574.      resident in memory. Note that this warning does not appear with all true
  7575.  
  7576.  
  7577. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX B
  7578.  
  7579.  
  7580.      TSR programs. Nor can TSR detection in non-TSR programs always be relied
  7581.      upon.
  7582.  
  7583.      N - Wrong name extension
  7584.      Name conflict. The program carries the extension .EXE but appears to be
  7585.      an ordinary .COM file, or it has the extension .COM but the internal
  7586.      layout of an .EXE file. A wrong name extension might in some cases
  7587.      indicate a virus, but in most cases it does not.
  7588.  
  7589.      O - code Overwrite.
  7590.      This flag will be displayed if TbScan detects that the program overwri-
  7591.      tes some of its own instructions. However, it does not seem to have a
  7592.      complete (de)cryptor routine.
  7593.  
  7594.      R - Suspicious relocator
  7595.      Flag 'R' refers to a suspicious relocator. A relocator is a sequence of
  7596.      instructions that changes the proportion of CS:IP. It is often used by
  7597.      viruses. Those viruses have to relocate the CS:IP proportion because
  7598.      they have been compiled for a specific location in the executable file;
  7599.      a virus that infects another program can hardly ever use its original
  7600.      location in the file as it is appended to this file. Sound pro-
  7601.      grams'know' their location in the executable file, so they don't have to
  7602.      relocate themselves. On systems that operate normally only a small
  7603.      percentage of the programs should therefore cause this flag to be
  7604.      displayed.
  7605.  
  7606.      S - Search for executables
  7607.      The program searches for *.COM or *.EXE files. This by itself does not
  7608.      indicate a virus, but it is an ingredient of most viruses anyway (they
  7609.      have to search for suitable files to spread themselves).  If accompanied
  7610.      by other flags, TbScan will assume the file is infected by a virus.
  7611.  
  7612.      T - Invalid timestamp.
  7613.      The timestamp of the program is invalid: e.g. the number of seconds in
  7614.      the timestamp is illegal, or the date is illegal or later than the year
  7615.      2000. This is suspicious because many viruses set the timestamp to an
  7616.      illegal value (like 62 seconds) to mark that they already infected the
  7617.      file, preventing themselves from infecting a file for a second time
  7618.      around. It is possible that the program being checked is contaminated
  7619.      with a virus that is still unknown, especially if many files on your
  7620.      system have an invalid timestamp. If only a very few programs have an
  7621.      invalid timestamp you'd better correct it and scan frequently to check
  7622.      that the timestamp of the files remains valid.
  7623.  
  7624.      U - Undocumented system call.
  7625.      The program uses unknown DOS calls or interrupts. These unknown calls
  7626.      can be issued to invoke undocumented DOS features, or to communicate
  7627.      with an unknown driver in memory. Since a lot of viruses use undocumen-
  7628.      ted DOS features, or communicate with memory resident parts of a previ-
  7629.      ously loaded instance of the virus, it is suspicious if a program
  7630.      performs unknown or undocumented communications. Nevertheless, it does
  7631.      not necessarily indicate a virus, since some 'tricky' programs use
  7632.      undocumented features also. 
  7633.  
  7634.  
  7635. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX B
  7636.  
  7637.  
  7638.      V - Validated program
  7639.      The program has been validated to avoid false alarms.
  7640.      -    The design of this program would normally cause a false alarm by
  7641.           the heuristic scan mode of TbScan, or:
  7642.      -    This program might change frequently, and the file is excluded from
  7643.           integrity checking.
  7644.      These exclusions are stored in the Anti-Vir.Dat file by either TbSetup
  7645.      (automatically) or by TbScan (manually).
  7646.  
  7647.      Y - Invalid bootsector.
  7648.      The bootsector is not completely in accordance with the IBM defined
  7649.      bootsector format. It is possible that the bootsector contains a virus
  7650.      or has been corrupted.
  7651.  
  7652.      Z - EXE/COM determinator.
  7653.      The program seems to check whether a file is a COM or EXE type program.
  7654.      Infecting a COM file is a process that is not similar to infecting an
  7655.      EXE file, which implies that viruses able to infect both program types
  7656.      should also be able to distinguish between them. There are of course
  7657.      also innocent programs that need to find out whether a file is a COM or
  7658.      EXE file. Executable file compressors, EXE2COM converters, debuggers,
  7659.      and high-loaders are examples of programs that may contain a routine to
  7660.      distinguish between EXE and COM files.
  7661.  
  7662.  
  7663. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX C
  7664.  
  7665.  
  7666. Appendix C. Solving incompatibility problems
  7667.  
  7668.  
  7669.      Although TBAV utilities have been designed to cooperate with other
  7670.      resident software, other software may not, causing system errors or
  7671.      worse.
  7672.  
  7673.  
  7674.  
  7675.      Problem:  If any TBAV utility tries to display a message, the text
  7676.                'message file <filename> could not be opened' appears.
  7677.  
  7678.      Solution: Specify the FULL path and filename of the file you will use as
  7679.                message file after the TbDriver loading command. The default
  7680.                file name is "TbDriver.Lng".
  7681.  
  7682.  
  7683.  
  7684.      Problem:  One of your utilities is loading a TSR into memory without an
  7685.                'executable' filename extension, such as .EXE or .COM. Since
  7686.                TbSetup will only create Anti-Vir.Dat records for files with
  7687.                an 'executable' extension, there is no Anti-Vir.Dat, so TbMem
  7688.                is not able to record the TSR permission information.
  7689.  
  7690.      Solution: Run TbSetup and specify the exact filename of the TSR. TbSetup
  7691.                will create an Anti-Vir.Dat record, regardless of the filename
  7692.                extension, so TbMem is now able to record its information.
  7693.  
  7694.                Although the Anti-Vir.Dat record exists, TbScan will not use
  7695.                it to check the CRC to avoid false alarms.
  7696.  
  7697.  
  7698.      Problem:  You are running a network. 
  7699.  
  7700.                TbScanX is installed succesfully, but it does not display the
  7701.                "*scanning*" message while accessing files. It does not detect
  7702.                viruses either.
  7703.  
  7704.                TbCheck is installed succesfully, but it does not display the
  7705.                "*checking*" message while accessing files. It does not detect
  7706.                viruses either. 
  7707.  
  7708.                TbFile is installed succesfully, but it does not detect anyt-
  7709.                hing anymore.
  7710.  
  7711.                TbMem is installed succesfully, but it does not detect TSRs
  7712.                anymore.
  7713.  
  7714.      Solution: Use the command 'TbDriver net' after the network has been
  7715.                loaded.
  7716.  
  7717.  
  7718. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX C
  7719.  
  7720.  
  7721.      Problem:  The system sometimes hangs when the message "*scanning*" is on
  7722.                the screen.
  7723.  
  7724.      Solution: Try TbScanX without option 'EMS' or 'XMS'. If TbScanX now
  7725.                works without any problems, add option 'EMS' or 'XMS' again
  7726.                along with option 'compat'. On some systems the TbScanX 'XMS'
  7727.                option cannot be used at all, because these systems do not
  7728.                allow the use of extended memory by resident software.
  7729.  
  7730.                If the problem is related to option 'XMS' and can not be
  7731.                solved with option 'compat', you can use option 'XMSseg =
  7732.                <value>' to change the XMS swap segment address. The value
  7733.                should be between 2000 and 8000. The default value is 4000.
  7734.  
  7735.  
  7736.  
  7737.      Problem:  After you have given permission for a program to remain resi-
  7738.                dent in memory, TbMem asks the same question the next time.
  7739.  
  7740.      Solution: 1)   The 'secure' option of TbDriver is specified. Remove this
  7741.                     option, reboot and try again.
  7742.  
  7743.                2)   The program mentioned does not appear in the Anti-Vir.Dat
  7744.                     file and therefore TbMem cannot permanently store the
  7745.                     permission flag. Use TbSetup to generate the Anti-Vir.Dat
  7746.                     record of this program!
  7747.  
  7748.  
  7749.  
  7750.      Problem:  The system sometimes hangs when you answer 'YES' (abort pro-
  7751.                gram) to a TbMem message.
  7752.  
  7753.      Solution: None. Some resident programs deeply interfere with the system,
  7754.                and once they are rejected from memory the state of the system
  7755.                is not stable anymore.
  7756.  
  7757.  
  7758.  
  7759.      Problem:  When you load TbDisk from the DOS command prompt everything
  7760.                works OK. However, when you install TbDisk from within the
  7761.                Config.Sys or AutoExec.Bat file it keeps on warning that
  7762.                programs write to disk directly.
  7763.  
  7764.      Solution: Load TbDisk at the end of your AutoExec.Bat file.
  7765.  
  7766.  
  7767.  
  7768.      Problem:  You formatted the hard disk using DOS FORMAT.COM, but TbDisk
  7769.                did not come up with a message until the process was almost
  7770.                finished.
  7771.  
  7772.      Solution: This is not a problem. A high level format program like DOS
  7773.                FORMAT.COM does actually not format the disk, but it reads all
  7774.                tracks to locate possible bad spots, and finally it clears the
  7775.  
  7776.  
  7777. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX C
  7778.  
  7779.  
  7780.                FAT and directory structure. Only this last step implies a
  7781.                disk write, so only this last step is detected by TbDisk.
  7782.  
  7783.  
  7784.  
  7785.      Problem:  After you have given permission for a program to perform
  7786.                direct disk access, TbDisk asks the same question next time.
  7787.  
  7788.      Solution: 1)   The 'secure' option of TbDriver is specified.  Remove
  7789.                     this option, reboot and try again. 
  7790.  
  7791.                2)   The program mentioned does not appear in the Anti-Vir.Dat
  7792.                     file and therefore TbDisk can not permanently store the
  7793.                     permission flag. Use TbSetup to generate the Anti-Vir.Dat
  7794.                     record ofthis program!
  7795.  
  7796.  
  7797.  
  7798.      Problem:  If you try to use Windows fast 32 bit disk access, Windows
  7799.                comes up with an error message.
  7800.  
  7801.      Solution: Use option 'win32' on the TbDisk command line.
  7802.  
  7803.  
  7804. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX D
  7805.  
  7806.  
  7807. Appendix D. Batch file handling
  7808.  
  7809.  
  7810.      All TBAV utilities return to DOS with an error code which you can use by
  7811.      the DOS 'errorlevel' command. Consult your DOS manual for information
  7812.      how to use this command.
  7813.  
  7814.      TbScan terminates with one of the following exit codes:
  7815.  
  7816.      Errorlevel      0        No viruses found / No error occurred
  7817.                      1        No files found
  7818.                      2        Error occurred
  7819.                      3        Files have been changed
  7820.                      4        Virus found by heuristic analysis
  7821.                      5        Virus found by signature scanning
  7822.                    255        Sanity check failed
  7823.  
  7824.  
  7825.      TbUtil terminates with one of the following exit codes:
  7826.  
  7827.      Errorlevel      0        No error occurred
  7828.                      1        When option 'compare' fails or an error occurs
  7829.  
  7830.  
  7831.      All other ultilities exit with one of the following exit codes:
  7832.  
  7833.      Errorlevel      0        No error occurred
  7834.                      1        Error occurred
  7835.  
  7836.  
  7837.      To detect within a batch file whether a resident TBAV utility has been
  7838.      loaded you can check for the device names. All TBAV utilities install a
  7839.      device name, whether they are loaded in the Config.Sys or AutoExec.Bat.
  7840.  
  7841.      You can use the DOS 'if exist' construction to check for the device
  7842.      names:
  7843.  
  7844.           @echo off
  7845.           if not exist SCANX echo TbScanX has not been loaded!
  7846.  
  7847.      Or you can branch to a label by using the goto command:
  7848.  
  7849.           If not exist SCANX goto noscanx
  7850.           bla bla
  7851.           :noscanx
  7852.           bla bla
  7853.  
  7854.      The TBAV device names are:
  7855.           TbScanX:            SCANX
  7856.           TbCheck:            TBCHKXXX
  7857.           TbMem:              TBMEMXXX
  7858.           TbFile:             TBFILXXX
  7859.           TbDisk:             TBDSKXXX
  7860.           TbLog:              TBLOGXXX
  7861.  
  7862.  
  7863. TBAV user manual (C) Copyright 1995 Thunderbyte B.V.                APPENDIX E
  7864.  
  7865.  
  7866. Appendix E. Virus naming
  7867.  
  7868.  
  7869.      How many viruses does TbScan detect?
  7870.  
  7871.      Most of the TbScan signatures are family signatures: one signature
  7872.      detects a whole set of viruses. All these viruses are related to each
  7873.      other. The Jerusalem signature for instance covers more than 100 viru-
  7874.      ses. For this reason one cannot tell how many viruses TbScan detects.
  7875.      Some competitive products treat each virus mutant as a separate virus,
  7876.      thus claiming to detect over 2000 viruses. TbScan, however can detect
  7877.      viruses using 'only' 1000 signatures. If you want to compare virus
  7878.      scanners, you have to rely on the tests frequently published in magazi-
  7879.      nes.
  7880.  
  7881.  
  7882.      The virus naming convention
  7883.  
  7884.      TbScan follows the CARO virus naming recommendations. CARO is an organi-
  7885.      sation in which leading anti-virus researchers participate. Viruses are
  7886.      grouped in a hierarchical tree, which indicates to which family viruses
  7887.      belong. TbScan shows the complete CARO name where possible. Many other
  7888.      anti-virus products however just show the family name or the member
  7889.      name. For instance, the 'Leprosy.Seneca.493' virus might be indicated by
  7890.      the familiy name 'Leprosy' or member name 'Seneca', or even by the
  7891.      variant name '493'. 
  7892.  
  7893.      Anti-virus products developed by non CARO members might even use a
  7894.      completely different name. TbScan however tries to display as much of
  7895.      the name as possible. If TbScan is not able to distinguish between the
  7896.      'Leprosy.Seneca.493' and 'Leprosy.Seneca.517' viruses, both viruses are
  7897.      indicated by the name 'Leprosy.Seneca'.
  7898.  
  7899.      Some viruses mutate themselves frequently. To detect all instances of
  7900.      such a virus it is sometimes necessary to use multiple signatures.
  7901.      Although these signatures cover exactly the same virus, they do have a
  7902.      slightly different indication. Behind the name of the virus you will see
  7903.      a number between anglebrackets. This number however has nothing to do
  7904.      with the name of the virus, but is there just for maintenance reasons.
  7905.  
  7906.